Modify

#3839 closed Feature Request (Rejected)

User data in control

Reported by: anonymous Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:

Description

I suggest adding functions to associate data (of any type) with the control. This will greatly simplify the development of scripts with a graphical interface that work with data.

GUISetParam($vData [, $hGui])
GUICtrlSetParam($idCtrl, $vData)
TrayItemSetParam($idCtrl, $vData)

GUIGetParam([$hGui])
GUICtrlSetParam($idCtrl)
TrayItemSetParam($idCtrl)

Many UI frameworks for other programming languages provide this opportunity. For example the "Tag" field in C# WinForms, WPF, UWP...
WinAPI also has the ability to store a pointer to user data (!) and AutoIt uses this for its own purposes, but does not give users this opportunity.

Attachments (0)

Change History (3)

comment:1 by TicketCleanup, on Jul 7, 2021 at 1:00:01 PM

Version: 3.3.14.5

Automatic ticket cleanup.

comment:2 by Jpm, on Jul 18, 2021 at 9:02:59 AM

Resolution: Rejected
Status: newclosed

As you mention AutoIt use it to its own handling so the sharing is complicated so we will not add them
Sorry
but thanks for trying to improve AutoIt

comment:3 by anonymous, on Jul 18, 2021 at 9:27:48 AM

It's a shame, I thought it was pretty easy to implement. Since AutoIt associates an element with some kind of its object (for example, to store a color?), Then adding a property there and giving it a getter/setter is quite simple :(

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.