Modify

Opened 3 years ago

Closed 3 years ago

Last modified 2 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 Changed 3 years ago by TicketCleanup

  • Version 3.3.14.5 deleted

Automatic ticket cleanup.

comment:2 Changed 3 years ago by Jpm

  • Resolution set to Rejected
  • Status changed from new to closed

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 Changed 3 years ago by anonymous

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 :(

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.