[Scilab-users] callback and output variables
RolandB
jdb61858 at suoox.com
Fri Aug 9 11:19:28 CEST 2019
Hi,
in the callback function you can access the calling GUI element with gcbo.
As those elements have an userdata property, you can assign an array or list
to that property and then access this array or list from elsewhere.
In the callback function:
my_array_or_list(1)=uigetfile();
my_array_or_list(2)="what_else_you_need";
set(gcbo, "userdata", my_array_or_list);
And if you want to access the data:
my_array_or_list=get(findobj("tag";"the_tag_you_had_defined_for_your_button"),
"userdata");
--
Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
More information about the users
mailing list