The StaticHyperLink control is a descendant of the StaticText control. The URL property of the StaticHyperLink control enables you to provide a hot link to a Web page. When the user clicks the control, the user's Web browser opens to display the page you specify.
Usage note
If you know that your users have browsers that support URL completion, you can enter a partial address, such as appeon.com.You can always enter a complete address, such as http://www.appeon.com.
StaticHyperLink property |
Datatype |
Description |
---|---|---|
String |
A description of the control and/or its purpose for use by accessibility tools such as readers for visually impaired users. |
|
String |
A label that briefly describes the control, such as the text in a button or the name of a menu item. |
|
AccessibleRole (enumerated) |
Describes what kind of user interface element the control is. |
|
Alignment (enumerated) |
Specifies the text alignment in the control. Values are: Left! Center! Right! |
|
Long |
Specifies the numeric value of the background color: -2 to 16,777,215. For more information about color, see the section called “RGB” in PowerScript Reference. |
|
Boolean |
Specifies whether the control has a border. Values are: TRUE -- Control has a border. FALSE -- Control does not have a border. |
|
Long |
Specifies the numerical value of the border color: -2 to 16,777,215. |
|
BorderStyle (enumerated) |
Specifies the style of the border of the control. Values are: StyleBox! StyleLowered! StyleRaised! StyleShadowBox! |
|
Boolean |
Specifies whether PowerBuilder moves the control to the top of the front-to-back order of the window. Values are: TRUE -- Control moved to top. FALSE -- Control not moved to top. |
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing information about the class definition of the object or control. |
DisabledLook |
Boolean |
Specifies whether the control appears to be enabled. |
Boolean |
Specifies whether PowerBuilder puts the control automatically into Drag mode. Values are: TRUE -- When the control is clicked, the control is automatically in Drag mode. FALSE -- When the control is clicked, the control is not automatically in Drag mode. You have to manually put the control into Drag mode by using the Drag function. |
|
String |
Specifies the name of the stock icon or the file containing the icon you want to display when the user drags the control (the ICO file). The default icon is a box the size of the control. When the user drags the control, the icon displays when the control is over an area in which the control can be dropped (a valid drop area). When the control is over an area that is not a valid drop area, the No-Drop icon displays. |
|
Boolean |
Specifies whether the control is enabled (can be selected). Values are: TRUE -- Control can be selected. FALSE -- Control cannot be selected. |
|
String |
Specifies the name of the typeface in which the text of the control displays (for example, Arial or Courier). |
|
FillPattern (enumerated) |
Specifies the hatch pattern used to fill the control. Values are: BDiagonal! Diamond! FDiagonal! Horizontal! Solid! Square! Vertical! FDiagonal! is lines going from the lower-left to the upper-right. BDiagonal! is lines going from the upper-left to the lower right. |
|
Boolean |
Specifies whether a dotted rectangle (focus rectangle) frames the control when it has focus. Values are: TRUE -- Control framed when it has focus FALSE -- Control not framed when it has focus |
|
FontCharSet (enumerated) |
Specifies the font character set used for the text in the control. For a complete list of possible values, see the list of properties for the FontCharSet variable on the Enumerated tab page of the Browser. |
|
FontFamily (enumerated) |
Specifies the font family (type style) used for the text in the control. Values are: AnyFont! Decorative! Modern! Roman! Script! Swiss! |
|
FontPitch (enumerated) |
Specifies the pitch (spacing) of the font used for the text in the control. Values are: Default! Fixed! Variable! |
|
Integer |
Specifies the height of the rectangular box that contains the control, in PowerBuilder units. |
|
Boolean |
Specifies whether the text in the control is italic. Values are: TRUE -- Text is italic. FALSE -- Text is not italic. |
|
String |
Specifies the name of the stock pointer or the file containing the pointer used for the control. |
|
Boolean |
Specifies that characters should be displayed in right-to-left order. The application must be running on an operating system that supports right-to-left display. Values are: TRUE -- Characters display in right-to-left order. FALSE -- Characters display in left-to-right order. |
|
Integer |
Specifies the tab value of the control within the window (0 is the default and means the user cannot tab to the control). |
|
String |
Specifies the tag value assigned to the control. |
|
String |
Specifies the text that displays in the control. |
|
Long |
Specifies the numeric value of the text color in the control: -2 to 16,777,215. For more information about color, see the section called “RGB” in PowerScript Reference. |
|
Integer |
Specifies the size of the text in the control, in points. For backward compatibility, the size is stored as a negative number; for example, 10-point text size is stored as -10. |
|
Boolean |
Specifies whether the text in the control is underlined. Values are: TRUE -- Text is underlined. FALSE -- Text is not underlined. |
|
URL |
String |
Specifies the URL to open in the user's Web browser when the text control is clicked, provided no Clicked event is coded. The status text displays the URL when the mouse passes over the control. |
Boolean |
Specifies whether the control is visible. Values are: TRUE -- Control is visible. FALSE -- Control is not visible. |
|
Integer |
Specifies the stroke weight of the text in the control; for example, 400 for normal or 700 for bold. |
|
Integer |
Specifies the width of the rectangular box that contains the control, in pixels. |
|
Integer |
Specifies the X position (the distance from the left edge of the window), in PowerBuilder units. |
|
Integer |
Specifies the Y position (the distance from the top of the window), in PowerBuilder units. |
StaticHyperLink event |
Occurs |
---|---|
When the control is clicked (selected) |
|
Immediately before the Open event occurs in the window |
|
Immediately after the Close event occurs in the window |
|
When the control is double-clicked (selected and activated) |
|
When a dragged control is dropped on the control |
|
When a dragged control enters the control |
|
When a dragged control leaves the control |
|
When a dragged control is within the control |
|
Just before the control receives focus (before it is selected and becomes active) |
|
When the user presses the F1 key or drags the context help button (question mark) from the title bar to a menu item or control |
|
When the control loses focus (becomes inactive) |
|
When a Windows message occurs that is not a PowerBuilder event |
|
When the right mouse button is pressed on the control |
StaticHyperLink function |
Datatype returned |
Description |
---|---|---|
String |
Returns the name assigned to the control |
|
Integer |
Starts or ends the dragging of the control |
|
Integer |
Creates a reference to a context-specific instance of the specified service. |
|
PowerObject |
Returns a reference to the name of the parent object |
|
Integer |
Makes the control invisible |
|
Integer |
Moves the control to a specified location |
|
Integer |
Returns the distance of the pointer from the left edge of the control |
|
Integer |
Returns the distance of the pointer from the top of the control |
|
Boolean |
Adds an event to the end of the message queue for the control |
|
Integer |
Prints the control |
|
Integer |
Changes the size of the rectangular box that contains the control |
|
Integer |
Sets focus to the control |
|
Integer |
Specifies the position of the control in the front-to-back order of the window |
|
Integer |
Controls automatic redrawing of the control after each change in its properties |
|
Integer |
Makes the control visible |
|
Integer |
Triggers a specified event in the control and executes the script for the event |
|
Object |
Returns the type of the control |