Hi, I am trying to make a quit button that has an Alert box that has 2 buttons, OK and Cancel. I'd like for the OK button to send them to a marker that I've named exit and the cancel button to just close the Alert box and leave them where they were. I have this code so far:
n mouseup me
gMUI = new(xtra "mui"
list = [:]
addProp list, #buttons, #OKCancel
addProp list, #default, 1
addProp list, #message, "Please make a note the section that you are in as indicated above so that you can return to this section from the Menu page."
addProp list, #moveable, TRUE
res = Alert(gMUI,list)
gMUI = 0
return res
end
My problem is that if I hit either button all it does is close the alert box. Also it says Null on the blue border of the alert box. ANy help willl be greatly appreciated. Thanks, Frank
Cheers~Frank
n mouseup me
gMUI = new(xtra "mui"
list = [:]
addProp list, #buttons, #OKCancel
addProp list, #default, 1
addProp list, #message, "Please make a note the section that you are in as indicated above so that you can return to this section from the Menu page."
addProp list, #moveable, TRUE
res = Alert(gMUI,list)
gMUI = 0
return res
end
My problem is that if I hit either button all it does is close the alert box. Also it says Null on the blue border of the alert box. ANy help willl be greatly appreciated. Thanks, Frank
Cheers~Frank