• Status Assigned
  • Percent Complete
  • Task Type Bug Report
  • Category Application
  • Assigned To
  • Operating System All
  • Severity Low
  • Priority Defer
  • Reported Version Development
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Koda
Opened by Chris Haslam - 17.01.2011
Last edited by Admin - 05.05.2011

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")

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).


Admin commented on 18.01.2011 07:01

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.

Admin commented on 18.01.2011 09:29

Added more detailed help topic about control templates here.

Chris Haslam commented on 03.06.2011 13:52

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.


Available keyboard shortcuts


Task Details

Task Editing