May 01, 2024, 04:50:30 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


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.

Brian

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

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!

Brian

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.