Page 1 of 1

Bug: IDs on static controls.

Posted: Thu May 05, 2011 6:36 pm
by JorgenHagglund
Try this:
Create a dialog, add an image to it and set the images caption to a defined constant which is a bitmap. Set the images type to SS_BITMAP.

Watching the script, You get something like:
CONTROL "IDB_ARROW_RIGHT",1,"STATIC",SS_BITMAP |WS_CHILD |WS_VISIBLE ,40,80,8,8

Where is should be, to work correctly:
CONTROL IDB_ARROW_RIGHT,1,"STATIC",SS_BITMAP |WS_CHILD |WS_VISIBLE ,40,80,8,8

Notice the missing doublequotes on the constant.

Conclusion:
When entering a defined constant in the caption, exclude the quotes.

Hope this will be corrected.

Best regards,
/J├Ârgen