comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » How to use BUTTON in CW_FORM?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
How to use BUTTON in CW_FORM? [message #89873] Sun, 14 December 2014 08:17
Andrii is currently offline  Andrii
Messages: 7
Registered: March 2014
Junior Member
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!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: extraction of harmonic terms from FFT in idl
Next Topic: Matlab "strel" function - is there an IDL equivalent?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 09:08:21 PDT 2025

Total time taken to generate the page: 0.00450 seconds