cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Changing functionality of X-button

unknown1
1-Newbie

Changing functionality of X-button

I need to run a script when a user exits using the Window exit button
(top-right-hand side of window). I know there was a thread on this at one
time. Can anyone point me in the right direction as to how this can be
accomplished?

Thanks in-advance,
Mary McGuinness Lane
FC Business Systems
Applications Programmer
USCG Bldg 63
Elizabeth City, NC 27909
252-335-6615


2 REPLIES 2


Mary,

Do a search for this thread Completeness Check on Exit It is about four
years old and one of the contributors was John Stone (another search
option). This gives several options and some detail.

Lynn

Going to the AUGI?

There is a call back you can use, here is one of those "did you want to" pop
ups that we all love.

function really()
{
$res = response("Do you really want to close This
Document?","&Yes","&No");

if ($res > 1)
{
return -1;
}else
{
return;
}
}

window_add_callback(current_window(), "quit", "really")
Announcements