Re: Same font for all controls

new topic     » goto parent     » topic index » view thread      » older message » newer message

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 thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu