|
|
Visits:
2532
(23 on line)
|
Last Update: Dec 5, 2003
|
|
|
|
| | |
| Description Inheritance Example Properties Methods |
| |
| Description |
The TButton5 object is a cover object for the APL+Win Button object. TButton5 is easier to use than a Button since it inherits from all TObject5 properties and methods: you can therefore use <wherelc> and <attach>. It also creates a ‘- function to easily query the button state and a link to the button name for easier use of the object (for instance, you may use: 'bnPrint'Świ... instead of 'ff.se.p1.bnPrint'Świ... )
See also: TCancelButton5 TOKButton5 |
| 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: |
'ff'Świ'*Create' 'TForm5'('*size'200 300)('*caption' 'TButton5 Example')
'ff.bnPrint'Świ'*Create' 'TButton5'('wherelc'5 215 Đ 80)('*caption' '&Print')('ChStyle'4)('attach'3 4 3 4)
'ff'Świ'DemoShowRedim'
'bnPrint'Świ'ChStyle'8 © add 8 (Toggle Button State) to the button styles, using the bnPrint "link" name
4
‘bnPrint © query the button state
0
|
| |
| Description Inheritance Example Properties Methods |
| |
| Properties |
| |
|
| class |
Description: Return current object class
Syntax: class„'obj' Świ 'class' |
| help |
Example:
0 0˝'ff' Świ '*Create' 'TForm5' ('*size'200 300) ('*caption' 'TButton5 Example')
0 0˝'ff.bnPrint' Świ '*Create' 'TButton5' ('wherelc'5 215 Đ 80) ('*caption' '&Print') ('ChStyle'4) ('attach'3 4 3 4)
0 0˝'ff' Świ 'DemoShowRedim'
'bnPrint' Świ 'ChStyle'8 © add 8 (Toggle Button State) to the button styles, using the bnPrint "link" name
‘bnPrint © query the button state
© Now click the button and query the button state again
© ‘bnPrint © will now return 1 |
 |
| image |
Description: Displays an image on the button
Syntax: 'obj' Świ 'image'imageno
imageno: the image number in buttons_bmp (see: 'oo5' Świ 'Bitmaps')
Example:
'ff.bnTest' Świ 'image'12 |
|
| Description Inheritance Example Properties Methods |
| |
| Methods |
| |
|
| New |
Description: Create a new instance of TButton5
Example:
'obj' Świ '*Create' 'TButton5'
|
|
| Description Inheritance Example Properties Methods |
| |
|