Click or drag to resize

SysLink Class

X#
Create a SysLink control.
Inheritance Hierarchy
Object
  VObject
    Control
      TextControl
        SysLink

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.24 GA
Syntax
 CLASS SysLink INHERIT TextControl
Request Example View Source

The SysLink type exposes the following members.

Constructors
  NameDescription
Public methodSysLink
Construct a SysLink control.
Important! This method is used internally by X#. Normally, it should not be called in your application code.
Top
Remarks
The SysLink control provides hyperlink capabilities when running under XP visual themes.
Tip Tip
This control is dependent on version 6 or greater of the COMCTL32.DLL and WinXP Theams. When XP themes are not available, such as when running on Windows 2000 or running the application on XP in "classic" mode, the SysLink control displays the full text assigned to it - any hyperlink references are included as literal text. It is suggested that the programmer should test for XP theme support, see IsThemeEnabled(), to determine what text should be assigned to the SysLink control For this reason it is recomended that it is called in this way -
X#
1IF IsThemeEnabled()
2s := "Visit <A HREF="+_chr(34)+;
3"http://www.grafxsoft.com"+_chr(34)+">GrafX</A> and <A HREF="+;
4_CHR(34)+"http://www.cavo.com"+_Chr(34)+">X#</A> on the web!"
5ELSE
6s := "Visit http://www.grafxsoft.com and http://www.cavo.com"+;
7" on the web!"
8ENDIF
The difference between the HyperLink and the SysLink classes is in the way that the text is used. In a HyperLink control, ALL of the text is passed as the hyperlink where as in the SysLink control you can mix display text and hyperlink text.
Examples
For an example of this , see the Help About screen in the Standard MDI Application.
See Also

Reference