Getoptions abort/exit/close query

This forum is for eXpress++ general support.
Post Reply
Message
Author
skiman
Posts: 1199
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Getoptions abort/exit/close query

#1 Post by skiman »

Hi,

While testing it seems to me that the functionality op the abort/exit/close query in dcgetoptions isn't working as described in the manual.

This is what I added to my dcgetoptions:

Code: Select all

         ABORTQUERY MSG {||DC_MsgBox(,,{'ABORT ?'},"CANCEL or ESCape" ,,,.t.,1,,,,,'10.Arial.bold')} ;
	 EXITQUERY MSG {||DC_MsgBox(,,{'EXIT ?'},"OK or EXIT" ,,,.t.,1,,,,,'10.Arial.bold')} ;
         CLOSEQUERY MSG {||DC_MsgBox(,,{'Close ?'},"X or Icon left corner" ,,,.t.,1,,,,,'10.Arial.bold')} 
The CLOSE message never appears? If I click the X (upper right) I'm getting also 'EXIT'?
Best regards,

Chris.
www.aboservice.be

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Getoptions abort/exit/close query

#2 Post by rdonnay »

I will look into this.
The eXpress train is coming - and it has more cars.

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Getoptions abort/exit/close query

#3 Post by rdonnay »

The below program works perfectly for me:

Code: Select all

#INCLUDE "dcdialog.CH"

FUNCTION Main()

LOCAL GetList[0], GetOptions, dDate := Date()

@ 0,0 DCGET dDate

DCGETOPTIONS ;
   CLOSEQUERY MSG {||MsgBox('CLOSE'), .f.} ;
   ABORTQUERY MSG {||MsgBox('ABORT'), .f.} ;
   EXITQUERY MSG {||MsgBox('EXIT'), .f.}

DCREAD GUI FIT OPTIONS GetOptions ADDBUTTONS

RETURN nil

PROC appsys ; RETURN
The eXpress train is coming - and it has more cars.

Post Reply