1. Same font for all controls

I've been using...

setFont({Win1,Bt2,List3},"Courier",12,Bold) 

...to adjust the size and font type for various controls.

But I wonder is it possible to change the font of all the controls of my application at one time. In short: How do I get my progam use a font preset in all windows, buttons, text, titles, and everything else.

How to do it?

new topic     » topic index » view message » categorize

2. Re: Same font for all controls

Huh?
I'm talking about something stupid?
Does this not possible?

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

3. Re: Same font for all controls

Are you using Win32Lib? (For clarity sake, you should probably specify that each time you start a new topic.)

You'll want to use setCreateFont() before creating your controls.

include Win32Lib.ew 
without warning 
 
setCreateFont( "Tahoma", 10, Normal, Black ) 
 
constant 
    Main        = create( Window, "SetFont Demo", 0, Default, Default, 480, 360, 0 ), 
    LText1      = create( LText, "Tahoma 10pt", Main, 10, 10, 100, 20, 0 ), 
    MleText1    = create( MleText, "Hello, this is a\r\nmulti-line textbox.", Main, 10, 40, 320, 160, 0 ), 
$ 
 
WinMain( Main, Normal ) 

-Greg

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

4. Re: Same font for all controls

Thank you very much
It was a solution that was ahead of my nose :)
But, I do not know why, I was not seeing.

Blessed this forum

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

Search



Quick Links

User menu

Not signed in.

Misc Menu