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

Home » Public Forums » archive » CW_FORM: Can't seem to get SET_VALUE to work
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
CW_FORM: Can't seem to get SET_VALUE to work [message #41404] Mon, 25 October 2004 07:40
lloyd is currently offline  lloyd
Messages: 16
Registered: February 2003
Junior Member
Hi all,

In advance, thanks for all the wonderful help that everyone always
passes my way.

I've started to venture into using CW_FORM to make quick forms for a
program I am writing. I think I have it almost done. I have a couple
of problems that I need to fix first though.

I have two text fields into which I want to place values that the user
can edit if they desire. Have placed the SET_VALUE keywords in, but am
still not getting any values printed there! Any ideas (have posted the
SHORT code at the end of this post).

Also if anyone could help on getting my checkboxes to line up that
would be great too.

Thanks

Lloyd Watkin

-----------------------------------------
pro test3

max_step = 1.0e-1
min_step = 1.0e-9

desc = [ $
'0, LABEL, Choose which species to vary:, CENTER', $
'1, BASE,, COLUMN=7, FRAME', $
'0, BUTTON, H2O|CO2|O3|N2O|CO|CH4|O2,' $
+ 'ROW, TAG=species1', $
'0, BUTTON, NO|SO2|NO2|NH3|HNO3|OH|HF,' $
+ 'ROW, TAG=species2', $
'0, BUTTON, HCl|HBr|HI|ClO|OCS|H2CO|HOCl,' $
+ 'ROW, TAG=species3', $
'0, BUTTON, N2|HCN|CH3Cl|H2O2|C2H2|C2H6|PH3,' $
+ 'ROW, TAG=species4', $
'0, BUTTON, COF2|SF6|H2S|HCOOH|HO2|O|ClONO2,' $
+ 'ROW, TAG=species5', $
'0, BUTTON, NO+|HOBr|C2H4|CH3OH,width=200,' $
+ 'ROW, TAG=species6', $
'0, TEXT, , LABEL_LEFT=Maximum step size:,SET_VALUE=max_step,
WIDTH=20' $
+ 'TAG=maxstep', $
'0, INTEGER, 0, LABEL_LEFT=Minimum step size:,SET_VALUE=min_step,
WIDTH=20, TAG=minstep', $
'1, BASE,, ROW', $
'0, BUTTON, OK, QUIT,CENTER,' $
+ 'TAG=OK', $
'2, BUTTON, Cancel, QUIT, CENTER']

a = CW_FORM(desc, /COLUMN)

;HELP, /STRUCTURE, a

if (a.ok EQ 0) then retall ;User has cancelled the fit

species = [a.species1,a.species2,a.species3,a.species4,a.species5,a.sp ecies6]
print, species
max_step = a.maxstep
min_step = a.minstep
print, minstep, maxstep
stop
end
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Open Jpeg
Next Topic: Re: Help: Plotting 3d data as 2d intensity map or histogram

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

Current Time: Fri Oct 10 04:05:55 PDT 2025

Total time taken to generate the page: 1.52153 seconds