RE: Icon on Pixmap for IDE

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

Judith wrote:
> In a future release of IDE I have added FlatToolBar control and 
> everything works nicely except I want to show the icon on the Form 
> Design in a similar fashion as I do the xpms and bitmaps on the ToolBar 
> control. But I can't figure out how to do that, since the form is a 
> Pixmap that is copyblt to Window1. I've tried adding an Icon to the 
> Pixmap and using setIcon but Win32lib complains about placing an Icon 
> control on a Pixmap. Does anyone have an idea?
> 
> Thanks,
> 
> Judith
> 
> 
  I'm no expert but I do get ideas.  Try placing the Icon in a 
window that is off screen and make sure the Icon is set visible
and the offscreen window has been repainted after setting the Icon
visible(might not be required). Next use bitBlt to copy the Icon to
pixmap or where ever you want. I am assuming that a Icon can be placed 
in a window without complaint.  I have very little windows
programming experience, but that's what I would try. Since the window
is off screen windows may just ignore your commands and not make the 
changes, I'm not sure.  If it does ignore it maybe you can open the 
window and make it visible do what you got to do then close it.
There's probably a better way, there's always another way if you
have the time to find it.

Larry Mears

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

Search



Quick Links

User menu

Not signed in.

Misc Menu