Hello,
I put a few strings in a scroll box in view of selecting one and using it later in the script...But I see no way to get the string that is selected by the user.
Example: in the following script we get a list of strings "first Item", "Second Item", ...
Once the user selects the "Second Item", how can I extract this information ?
Thanks a lot.
Names Default To Here( 1 );
win = New Window( "Example",
sb = Scroll Box(
Size( 250, 75 ),
List Box(
{"First Item", "Second Item", "Third Item", "Fourth Item",
"Fifth Item"},
width( 200 ),
max selected( 2 ),
nlines( 6 )
)
)
);
win << Set Window Size( 300, 200 );