Mnemonics "H"
From CometWiki
Contents |
(Hide Cursor)
Mnemonic: (Hide Cursor)
Discussion: This mnemonic hides the regular cursor.
See Regular cursor display for more information.
Also see (Show Cursor).
Example: a.
100 FORMAT (Hide Cursor) . PRINT (0,100)
Example b.
PRINT (0) (Hide Cursor)
(Hide Mouse Cursor)
Mnemonic: (Hide Mouse Cursor)
Hex equivalent: "@0E0902@"
Discussion: This control hides the mouse cursor, and is intended for touch-sensitive screens.
Also see (Show Mouse Cursor).
Example: a
100 FORMAT (Hide Mouse Cursor) . PRINT (0,100)
Example b. PRINT (0) (Hide Mouse Cursor
(HyperLink)
Mnemonic: (HyperLink = LinkText$, LinkAction$, Style) where:
- LinkText$ is the text that is displayed on the screen
- LinkAction$ is a string value (254 bytes maximum) that is passed to the event handling subroutine when the user clicks on a hyperlink.
Note: This is an internal value only; the end-user does not see this string.
See the EVENTSUB statement for more information. - Style is a numeric value that determines if the link text is underlined (0 = not underlined, 1 = underlined).
Discussion:
The HyperLink mnemonic displays a hyperlink on the screen.
For a complete discussion, see Comet Hyperlinks.
Example:
Print @(0,3);"What is your favorite flavor?" Print @(0,4);(Hyperlink="Chocolate","LINK1",0) Print @(0,5);(Hyperlink="Vanilla","LINK2",0) Print @(0,6);(Hyperlink="Strawberry","LINK3",0) Print @(0,7);(Hyperlink="Chocolate chip","LINK4",0)
This program displays several hyperlinks on the Comet/CometAnywhere screen.
If the user clicks on the any of these links, the associated LinkAction$ value is passed to the event handling subroutine.
For example, if the user clicks on the "Chocolate chip" hyperlink, "LINK4" is passed to the event handling subroutine.
Notice that all of the above hyperlinks are displayed without an underline (Style = 0).
Note: The above code segment comes from the HyprLink.ibs demo program (available in the DMW release).
(HyperLinkColor)
Mnemonic: (HyperLinkColor=Red,Green,Blue,mouseoverRed,mouseoverGreen,mouseoverBlue) where:
- the first three parameters (Red, Green, Blue) determine the color of the link text
- the remaining three parameters (mouseoverRed, mouseoverGreen, mouseoverBlue) determine the color of the text on a mouseover
- all of these parameters must be in the range 0 (minimum color intensity) to 255 (maximum color intensity). Thus, there are more than 16.7 million color combinations available.
Discussion: The HyperLinkColor mnemonic establishes the colors (normal and mouseover) of a hyperlink on the Comet/CometAnywhere screen.
To restore the initial default colors, use the following settings:
(HyperLinkColor=255,255,255,255,255,255)
For a complete discussion, see Comet Hyperlinks.
Example: (HyperLinkColor=255,0,0,0,0,255)
- The first three values (255,0,0) specify maximum red, no green, and no blue (result: link text is red)
- The second three values (0,0,255) specify no red, no green, and maximum blue (result: mouseover text is blue)