if I not select the menupopup then I can close the dialog
this is the source test
- Code: Select all Expand view
- #include "fivewin.ch"
#include "xBrowse.ch"
#include "constant.ch"
#include "ribbon.ch"
#define TOPSCOPE 0
#define BOTTOMSCOPE 1
REQUEST DBFCDX
REQUEST DBFFPT
EXTERNAL ORDKEYNO,ORDKEYCOUNT,ORDCREATE,ORDKEYGOTO
Function test()
Local oDlg
Local nBottom := 38.9
Local nRight := 106.5
Local nWidth := Max( nRight * DLG_CHARPIX_W, 180 )
Local nHeight := nBottom * DLG_CHARPIX_H
MENU oPopRecord POPUP
MENUITEM "Record and Print"
MENUITEM "Record and Email"
MENUITEM "Record and Fax"
MENUITEM "Record and Payment"
MENUITEM "Record only"
MENUITEM "Save as Draft"
MENUITEM "Save as Recurring"
SEPARATOR
MENUITEM "Preview"
ENDMENU
DEFINE DIALOG oDlg ;
TITLE "New Invoice" ;
SIZE nWidth, nHeight TRANSPARENT PIXEL
@ 270, 65 RBBTN PROMPT "Record select ";
SIZE 100,12 ;
OF oDlg PIXEL ;
POPUP MENU oPopRecord BORDER ROUND
ACTIVATE DIALOG oDlg centered
RETURN NIL