Hyperlink Hooks
The editor provides the hooks to implement hyperlink facility.
Activation | When the user double clicks on the text formatted with the double underline attribute, the editor sends a hyperlink message to the parent window. The hyperlink text format can be changed from double underline to any format of your choice by using the following code. GetTerFields(hWnd,&field) field.LinkStyle = style-constant field.LinkColor = RGB-color field.LinkDblClick = set to FALSE to activate the hyperlink on a single mouse click. SetTerFields(hWnd,&field) For a list of character styles, please refer to the SetTerCharStyle function. A special style-constant called HLINK is also available. This style does not have any visible attribute, but it allows the hyperlink text to have any mix of fonts and colors. |
Message | Message ID=TER_LINK The 'text' member variable stores the text formatted with the double underline attribute. If the text is greater than MAX_WIDTH, only the first MAX_WIDTH characters are stored. The 'code' member variable stores the 'hidden' text found immediately before the link text. The format of the link code text can be changed from the 'hidden' attribute to any format of your choosing by editing the 'HYPER_CODE' global constant. Return Value: Your application should return a TRUE value if it processes this message. Otherwise it should return a FALSE value. |