Action when closing a window

Action when closing a window

Postby Wolfgang Ciriack » Tue Aug 05, 2008 7:19 am

Hello,
how can i assign a action to closing a window, someting like ON CLOSE ?
Can i decide with the return value of this action to close the window or to stay in the window ?
Best regards
Wolfgang Ciriack
Wolfgang Ciriack
 
Posts: 37
Joined: Sun Aug 03, 2008 8:02 am
Location: Germany, Berlin

Postby Antonio Linares » Tue Aug 05, 2008 7:30 am

Wolfang,

Use the VALID clause:

ACTIVATE WINDOW oWnd VALID MsgYesNo( "Want to end ?" )

the expression used with VALID has to return a logical value
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Wolfgang Ciriack » Tue Aug 05, 2008 7:46 am

Hello Antonio,
thanks, that it so easy that it don't came in my mind :)
Best regards
Wolfgang Ciriack
Wolfgang Ciriack
 
Posts: 37
Joined: Sun Aug 03, 2008 8:02 am
Location: Germany, Berlin


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 4 guests

cron