Hello everybody!
My question is the next:
I used here an example from exelisvis website about the CW_FORM.
desc = [ $
'0, LABEL, Centered Label, CENTER', $
'1, BASE,, ROW, FRAME', $
'0, BUTTON, B1|B2|B3, LABEL_TOP=Nonexclusive:,' $
+ 'COLUMN, TAG=bg1', $
'2, BUTTON, E1|E2|E2, EXCLUSIVE,LABEL_TOP=Exclusive:,' $
+ 'COLUMN,TAG=bg2', $
'0, INTEGER, 0, LABEL_LEFT=File_id:, WIDTH=6,' $
+ 'TAG=fid', $
'0, INTEGER, 0, LABEL_LEFT=File size:, WIDTH=6, TAG=fsize', $
'1, BASE,, ROW', $
'0, BUTTON, OK, QUIT,' $
+ 'TAG=OK', $
'2, BUTTON, Cancel, QUIT']
a = CW_FORM(desc, /COLUMN)
I would like to do the next: instead of Cancel button I want to put button "Change". Every time when I push this button the value of fields with the label "File_id" and "File size" has to be changed to, for example 5 and 10 respectively and the new values have to be visualized.
As I understood I have to write something like '2, BUTTON, Change, EVENT=Change_value' where Change_value - some function that will perform these changes.
Thank you in advance!
|