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

Home » Public Forums » archive » textbox value on destroy?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: textbox value on destroy? [message #28705 is a reply to message #28622] Fri, 04 January 2002 08:39 Go to previous messageGo to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
Gert Van de Wouwer wrote:
>
> yep, thats the obvious thing. Unfortunately, I cannot figure out WHEN to do
> this in the case that the user closes the apllication.

I can't believe nobody answered you. I am sorry.
May the following example be of any help?

; *** Begin code ****
pro test_event, ev
widget_control, widget_info(ev.top,/child), get_value=text
print, text
if tag_names(ev, /structure_name) eq $
"WIDGET_KILL_REQUEST" then $
widget_control, ev.top, /destroy
end

pro test
base = widget_base(/tlb_kill_request)
text = widget_text(base, /editable)
widget_control, base, /realize
xmanager, 'test', base, /no_block
end
;*** End code ***

You can see that the value entered into the textbox is printed any time
an event occurs (like, when you press "Enter"), and also when you kill
the widget by clicking on the system-specific window kill control.

Pavel
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Windows XP problems
Next Topic: Re: Two-page PostScript output

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

Current Time: Sat Oct 11 02:44:48 PDT 2025

Total time taken to generate the page: 1.35777 seconds