Page 1 of 1

Getoptions abort/exit/close query

Posted: Thu Jun 24, 2010 4:51 am
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'?

Re: Getoptions abort/exit/close query

Posted: Fri Jun 25, 2010 7:24 am
by rdonnay
I will look into this.

Re: Getoptions abort/exit/close query

Posted: Fri Jun 25, 2010 7:46 am
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