1. Adjusting only the PushButton font

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.

new topic     » topic index » view message » categorize

2. Re: Adjusting only the PushButton font

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 
new topic     » goto parent     » topic index » view message » categorize

3. Re: Adjusting only the PushButton font

Very good idea!
Thanks Derek

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu