July 20, 2024, 06:44:55 AM


IWBasic runs in Windows 11!

Static Controls

Started by Brian, June 15, 2023, 11:26:01 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


June 15, 2023, 11:26:01 AM Last Edit: June 16, 2023, 05:03:23 AM by Brian

I was wondering why some @STATIC controls were allowing me to delete the control's text, and some did not. I put together this little test file to test the style flags, and found that if you have @SS_SIMPLE as a flag, the text doesn't get deleted. Mess about with it!


And here's the reason, according to Microsoft:

A simple rectangle and displays a single line of left-aligned text in the rectangle. The text line cannot be shortened or altered in any way. Also, if the control is disabled, the control does not gray its text.