Hi,
is self-reference possible in the hot-spot commands ("<< Set Menu Script"), similar to "<<Set Function".
E.g., in the example below I'd like to have a hot-spot commands instead of the buttons:
Names Default To Here( 1 );
names = {"AAAA", "BBBB", "CCCC", "DDDD"};
New Window( "Example",
For( i = 1, i <= N Items( names ), i++,
<<append(
Outline Box( names[i], Button Box( "Show my name", <<Set Function( Function( {self}, Show( (self << parent) << get title ) ) ) ), )
)
)
);
What I'd like to have is something like below:
New Window( "Example",
For( i = 1, i <= N Items( names ), i++,
<<append(
Outline Box( names[i],
<<Set Menu Script(
{ "Show my name", <function with reference to self here> },
)
)
)
)
);
Assigning each outline box to variable is not an option. I need to be able to do it dynamically. Any ideas?
Thanks