- Status Assigned
- Percent Complete
- Task Type Bug Report
- Category Application
-
Assigned To
Admin - Operating System All
- Severity Low
- Priority Defer
- Reported Version Development
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
FS#158 - TALabel: Autosize
I would like to see the default for TALabel | Autosize be False. It is frustrating to create a label which will be populated/set from the AutoIt script and have its default to the size of the text Label1 – because part of my mental process is to make the size be enough for the longest value GUICtrlSetData() will provide.
For example, when I am upgrading a script, I usually put the word “Development” as a label in the first dialog the script creates. When the script is no longer a development version, the script leaves this label blank. So in Koda I make lblDevel long enough for the word “Development”. Here is the
If StringInStr(@ScriptName,"(Devel)")<>0 Then GUICtrlSetData($lblDevel,"Development version") EndIf</code>
As Koda is now, I have to create the label, change AutoSize to False, then increase the length of the label. A bit of a pain!
This is not a major issue with me, but I would prefer AutoSize to default to False (as VB has it).
...chris
Chris, so far you can use control templates mechanism to change default control properties. Download attached file and place it to Koda folder. All new labels will be created with Autosize set to false. You also can modify this file for change default appearance of any other control.
But, since this behaviour disliked by many people, I'll likely change it.
Added more detailed help topic about control templates here.
GuiCtrlLabel correctly line-wraps a label on to multiple lines if the control is high enough, but this does not show in the Design Area. This is with SS_LEFTNOWORDWRAP unchecked.