1. Adjusting only the PushButton font
- Posted by sergelli Oct 20, 2013
- 1359 views
I have a program with dozens of PushButton. To adjust the font of them, I have used the following line:
setFont ({BT01, BT02, BT03,... ...bt80}, "Courier New", 8, Bold)
I wonder if there is another way to adjust only all PushButtons font, while leaving unchanged the other controls.
2. Re: Adjusting only the PushButton font
- Posted by DerekParnell (admin) Oct 20, 2013
- 1349 views
sergelli said...
I have a program with dozens of PushButton. To adjust the font of them, I have used the following line:
setFont ({BT01, BT02, BT03,... ...bt80}, "Courier New", 8, Bold)
I wonder if there is another way to adjust only all PushButtons font, while leaving unchanged the other controls.
How about wrapping the create function ...
function CreateButton( ... ) integer id id = create( PushButton, ... ) setFont( id, "Courier New", 8, Bold) return id end function
3. Re: Adjusting only the PushButton font
- Posted by sergelli Oct 20, 2013
- 1353 views
Very good idea!
Thanks Derek