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

Home » Public Forums » archive » CW_FORM
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
CW_FORM [message #21332] Tue, 22 August 2000 00:00 Go to previous message
<hom is currently offline  <hom
Messages: 5
Registered: August 2000
Junior Member
I want to create a widget that will allow the user to input several
strings into various fields, and then have a 'Quit' button that when
pressed will destroy the widget and retain the inputed values.

Below is my code. So far I am unsuccessful at getting CW_FORM to work. Is
CW_FORM what I should be using? If so, could anyone tell me what I am
missing in my code?

I would appreciate any help!!

Thanks,
Aimy

;*********************************************************** *****
pro CmpndWidget

BaseWidget=WIDGET_BASE(Title='Base',/COLUMN)

desc=['1,TEXT,File Name, WIDTH=12, TAG=Name',$
'0, BUTTON, OK, QUIT, TAG=OK', $
'2, BUTTON, Cancel, QUIT']

FormWidget=CW_FORM(BaseWidget,desc,/COLUMN)

; Making the widget visible on the screen
WIDGET_CONTROL, /REALIZE, BaseWidget

REPEAT BEGIN
event=widget_event(BaseWidget)
ENDREP UNTIL (event.quit EQ 1)

print, event.VALUE

end
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CW_FORM
Next Topic: Speedy way to get compare array elements. . .

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

Current Time: Wed Oct 08 15:07:32 PDT 2025

Total time taken to generate the page: 0.00408 seconds