Windows RED button (again)

new topic     » topic index » view thread      » older message » newer message

We have a window with an OKButton, which close window.

global integer record_no

procedure onClick_WindowButtons(integer self, integer event, sequence
params)
record_no = -1
     if self = OKButton then
              record_no = getItemRecordNumber()
     elsif self = CancelButton then
              record_no = -1
     end if
     closeWindow(MyWindow)
end procedure
setHandler({OKButton, CancelButton}, w32HClick,
routine_id("onClickWindowButtons"))


after MyWindow is closed, id need this record_no value.
But if I close window with "Red button", situation change. It is possible to
get error: "variable record_no has not been assigned a value"
How can I assign a value to record_no after clicking "Red" CloseButton?


-----Original Message-----
From: George Walters [mailto:guest at RapidEuphoria.com]
Sent: Thursday, February 03, 2005 12:08 AM
To: EUforum at topica.com
Subject: Windows RED button


============ The Euphoria Mailing List ============


posted by: George Walters <gwalters at sc.rr.com>



Anyone know how to trap a click on the red kill button?

--^----------------------------------------------------------------
This email was sent to: horvath at acasa.ro

EASY UNSUBSCRIBE click here: http://topica.com/u/?b1dd66.b7sfan.aG9ydmF0
Or send an email to: EUforum-unsubscribe at topica.com

For Topica's complete suite of email marketing solutions visit:
http://www.topica.com/?p=TEXFOOTER
--^----------------------------------------------------------------



_______________________________________________________________
Connex scaneaza automat toate mesajele impotriva virusilor folosind Trend Micro
VirusWall.
Connex automatically scans all messages for viruses using Trend Micro VirusWall.
_______________________________________________________________
Nota: Este posibil ca produsul Trend Micro VirusWall sa nu detecteze toti
virusii noi sau toate variantele lor. Va rugam sa luati in considerare ca exista
un risc de fiecare data cind deschideti fisiere atasate si ca MobiFon nu este
responsabila pentru orice prejudiciu cauzat de decizia dvs.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu