Re: win32lib and icons?
- Posted by Derek Parnell <ddparnell at bigpond.com> Nov 17, 2004
- 499 views
Patrick Barnes wrote: > > On Wed, 17 Nov 2004 11:24:26 +1100, Patrick Barnes <mrtrick at gmail.com> > wrote: > > > By default, win32lib sets the buttons to 32x32 (actually SM_CXICON x > > > SM_CYICON) > > > size. You sould be able to change this but only before you add any > > > buttons to it. Try running this before the first button is added... > > > > > > atom lTemp > > > lTemp = w32pack_word( 48, 48 ) > > > VOID = sendMessage(tbar, TB_SETBUTTONSIZE, 0, lTemp) > > > VOID = sendMessage(tbar, TB_SETBITMAPSIZE, 0, lTemp) > > > > > > > Thanks, will do. > > Argh, there's no place to add it using the IDE... Any suggestions? I > don't want to ditch the IDE and move to pure coding yet, there's quite > a lot of GUI work left. I tried wrapping it inside a function and > putting it in the code/comments section, but it's placed *before* > tool_bar is declared. Nothing at this stage. I can certainly set something up in the next version. A routine to call after the "include win32lib.ew" and before the toolbar is created. Something like ... setClassProperty(FlatToolBar, "size=(48,48)") -- Derek Parnell Melbourne, Australia