|
|
Visits:
2347
(8 on line)
|
Last Update: Dec 5, 2003
|
|
|
|
| | |
| Description Inheritance Example Properties Methods |
| |
| Description |
With the TTipForm5 Object you can display a tip form when the mouse hovers some element of your Interface |
| Description Inheritance Example Properties Methods |
| |
| Inheritance |
Inherits from: TObject5 |
| Description Inheritance Example Properties Methods |
| |
| Example |
| |
 |
| |
The above example was generated by the following APL+Win Objects code: |
aaa„1 2˝'Function' 'TObject5'
aaa„aaa®'Nb. of lines'(•†˝Ścr'TObject5')
aaa„aaa®'Size'((,'CI8'Śfmt˝Śvr'TObject5'),' bytes')
'ff'Świ'*Create' 'TTipForm5'('content'aaa)('color'204 204 255)'Show'
'ff'Świ'*Create' 'TTipForm5'('gridcontent'aaa)('gridcolor'0(204 204 255))'Show' 'SessionFocus'
'ff'Świ'shadedepth'6
'ff'Świ'shadeborder'1
'ff'Świ'shadeborder'0
'ff'Świ'shadecolor'255
'ff'Świ'shadedepth'3
'ff'Świ'shadecolor'0
'ff'Świ'gridcolor'(0 102 0)(204 255 204)
'ff'Świ'*Create' 'TTipForm5'('*noredraw'1)
'ff'Świ'*Set'('imagefile'(('oo5'Świ'installdir'),'buttons.bmp'))('imagesize'16 16)('image'2) © MUST be set before
'ff'Świ'gridcontent'(1 1˝,›'')
'ff'Świ'*Set'('gridcolor'(255 255 255))('shadecolor'(64 64 64))
'ff'Świ'ShowOffSet'2 8
Śerase'aaa'
|
| |
| Description Inheritance Example Properties Methods |
| |
| Properties |
| |
|
| class |
Description: Return current object class
Syntax: class„'obj' Świ 'class' |
| color |
Description: Get or Set the tip window background color
Syntax: {rgb„'} 'obj' Świ 'color' {rgb}
rgb: a 3-element RGB color vector
Note: works if you use the <content> property to fill the tip
Example:
'ff' Świ 'color'204 204 255 |
| content |
Description: Get or Set the tip window text content
Syntax: {array„'} 'obj' Świ 'content' {array}
array: a nested matrix containing text to be displayed in the tip
Note: use <color> to change the tip background color
Uses a Listview object to display the data
Example:
aaa„1 2˝'Function' 'TObject5'
aaa„aaa®'Nb. of lines' (•†˝Ścr'TObject5')
aaa„aaa®'Size' ((,'CI8' Śfmt˝Śvr'TObject5'),' bytes')
'ff' Świ 'content'aaa |
| gridcolor |
Description: Set the tip window background color (write-only)
Syntax: 'obj' Świ 'gridcolor'decodedrgb
decodedrgb: a vector of 256 decoded RGB set of colors, one for each column
Note: works if you use the <gridcontent> property to fill the tip
Example:
'ff' Świ 'gridcolor' (204 204 255) (255 255 204) |
 |
| gridcontent |
Description: Set the tip window content (write-only)
Syntax: 'obj' Świ 'gridcontent'nestedmatrix
nestedmatrix: a nested matrix of character vectors
Note: use <gridcolor> to change the grid colors for each column
Example:
aaa„1 2˝'Function' 'TObject5'
aaa„aaa®'Nb. of lines' (•†˝Ścr'TObject5')
aaa„aaa®'Size' ((,'CI8' Śfmt˝Śvr'TObject5'),' bytes')
'ff' Świ 'gridcontent'aaa |
| help |
Example:
© Preliminary note:
© This object is most often shown in an onMouseEnter event
© and hidden in an onMouseLeave event
aaa„1 2˝'Function' 'TObject5'
aaa„aaa®'Nb. of lines' (•†˝Ścr'TObject5')
aaa„aaa®'Size' ((,'CI8' Śfmt˝Śvr'TObject5'),' bytes')
© Example 1: use a Listview object to display the tip
0 0˝'ff' Świ '*Create' 'TTipForm5' ('content'aaa) ('color'204 204 255) 'Show'
© Example 2: uses an APL+Win Grid object to display the tip
0 0˝'ff' Świ '*Create' 'TTipForm5' ('gridcontent'aaa) ('gridcolor'0(204 204 255)) 'Show' 'SessionFocus'
'ff' Świ 'shadedepth'6
'ff' Świ 'shadeborder'1
'ff' Świ 'shadeborder'0
'ff' Świ 'shadecolor'255
'ff' Świ 'shadedepth'3
'ff' Świ 'shadecolor'0
'ff' Świ 'gridcolor' (0 102 0) (204 255 204)
© 'ff' Świ '*Hide' © hide the tip form
© Example 3: display an image in the Tip Form
0 0˝'ff' Świ '*Create' 'TTipForm5' ('*noredraw'1)
'ff' Świ '*Set' ('imagefile' (('oo5' Świ 'installdir'),'buttons.bmp')) ('imagesize'16 16) ('image'2) © MUST be set before <gridcontent>
'ff' Świ 'gridcontent' (1 1˝,›'')
'ff' Świ '*Set' ('gridcolor' (255 255 255)) ('shadecolor' (64 64 64))
'ff' Świ 'ShowOffSet'2 8
Śerase'aaa' |
 |
| image |
Description: Get or Set the image number to be displayed in the tip form
Syntax: 'obj' Świ 'image'image
image: the number of an image contained in an <imagefile>
Note: this property is exploited when the <gridcontent> property is set
so this property MUST be set before <gridcontent> is set
Example:
'ff' Świ 'image'1 |
 |
| imagefile |
Description: Get or Set the image file name containing the images
Syntax: 'obj' Świ 'imagefile'imagefile
imagefile: full path name of an image file containing images for the Tip form
Note: this property is exploited when the <gridcontent> property is set
so this property MUST be set before <gridcontent> is set
Example:
'ff' Świ 'imagefile' (InstallDir,'\logos50.bmp') |
| shadeborder |
Description: Get or Set the tip window border shadow
Syntax: {shade„'} 'obj' Świ 'shadeborder' {shade}
shade: boolean: 1=draw a border around the shade
Example:
'ff' Świ 'shadeborder'1 |
| shadecolor |
Description: Get or Set the tip window shadow color
Syntax: {rgb„'} 'obj' Świ 'shadecolor' {rgb}
rgb: a 3-element RGB vector
Example:
'ff' Świ 'shadecolor' (192 192 192) |
| shadedepth |
Description: Get or Set the tip window shadow thickness
Syntax: {shadeddepth„'} 'obj' Świ 'shadedepth' {shadedepth}
shadedepth:
Example:
'ff' Świ 'shadedepth' (192 192 192) |
|
| Description Inheritance Example Properties Methods |
| |
| Methods |
| |
|
| New |
Description: Create a new instance of TTipForm5
Example:
'obj' Świ '*Create' 'TTipForm5'
|
| Show |
Description: Displays the last occured event in the APL session
Syntax: 'obj' Świ 'ShowEvent' |
 |
| ShowOffSet |
Description: Displays the tip form at a position offset from the cursor position
Syntax: 'obj' Świ 'ShowOffSet'y x
y: vertical offset from cursor position (>0 is downward)
x: horizontal offset from cursor position (>0 is to the right)
Note: this method is handy for displaying the tip form at an offset
position from the cursor position in an onMouseMove event handler
Example:
'ff' Świ 'ShowOffSet'2 10 |
| Wait |
Description: Waits on a TForm5 or TMDIForm5 centered on the screen
Syntax: 'obj' Świ 'Show'
Example:
'ff' Świ '*Create' 'TForm5' ('*size'300 400) 'Wait' |
|
| Description Inheritance Example Properties Methods |
| |
|