Modify

Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#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, 5 years ago

Version: 3.3.14.5

Automatic ticket cleanup.

comment:2 by J-Paul Mesnage, 5 years ago

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, 5 years ago

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.