PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Roger Garstang on June 08, 2004, 09:28:44 PM

Title: Picture Control
Post by: Roger Garstang on June 08, 2004, 09:28:44 PM
For some reason when I assign an icon to the control and later assign a new one with:
SENDMESSAGE(HWND_HTML_ANIMATION, %STM_SETIMAGE, %IMAGE_ICON, LOADIMAGE(App.hInstance, BYVAL %IDR_DRUM, %IMAGE_ICON, 32, 32, %LR_SHARED))

everything works fine, but if I don't assign an icon to the control and try to give it an icon later it doesn't work...what am I missing?
Title: Picture Control
Post by: TechSupport on June 08, 2004, 09:42:48 PM
My thoughts are that without an initial "picture" set then FireFly does not know what Windows Style to use when creating the control during code generation. You may need to dynamically modify the Windows Style before assigning your icon.

Not sure about this, I do not currently have access to my source code.
Title: Picture Control
Post by: Roger Garstang on June 08, 2004, 09:49:20 PM
ok...I think.

You might change the code in the future to use numeric values for the resource ID, and high value numbers and id names like ZZZ or something so it doesn't think it is my app's icon is that of the picture control too...

I also noticed now that I can't drag and size my picture control...I have to type it in, but the other controls work.
Title: Picture Control
Post by: Roger Garstang on June 08, 2004, 10:49:09 PM
Fixed the problem...it was missing %SS_ICON style.

Had to add %SS_ICON = &H00000003 to the inclean inc file too.

Can we make this control have those options where the user can select them instead of grayed out...I mean if someone doesn't know to select icon for an ico file or bitmap for a bmp file it would probably be a good idea to not use the control all together.  :roll: