DCAPPEDIT & DCAPPBROWSE

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
unixkd
Posts: 579
Joined: Thu Feb 11, 2010 1:39 pm

DCAPPEDIT & DCAPPBROWSE

#1 Post by unixkd »

Hi Roger

1. The "Seek" Button of the toolbar is NOT active - dimmed

2. TRIGGER clause of DCAPPEDIT not firing

3. The Horizontal Grid lines of DCAPPBROWSE not showing

4. The FONT clause of DCAPPEDIT only affect GET boxes and Field descriptions are NOT affected.

5. It is possible to access the underlining xbase parts of DCAPPEDIT ?

Thanks.

Joe.

CODE:

*
Function UniQ_Menu()
LOCAL GetList[0], GetOptions, oStatic[2], oAppEdit, oAppBrowse

@ 0,1 DCSTATIC TYPE XBPSTATIC_TYPE_RAISEDBOX SIZE 60,20 OBJECT oStatic[1]
@ 0,62 DCSTATIC TYPE XBPSTATIC_TYPE_RAISEDBOX SIZE 43,20 OBJECT oStatic[2]

DCAPPEDIT INTO oAppEdit STYLE FANCY POSITION 0,0 ALIAS "PPSFUNCS" PARENT oStatic[1] ;
HEADING "PowerPlus Software Menu Configuration" NOACTION APPACTION_NODELETE;
TRIGGER "APP_ConfirmUpdate" ON UPDATE // SEEK {|| DC_Winalert("my app seek")}

DCAPPBROWSE INTO oAppBrowse STYLE FANCY POSITION 0,0 ALIAS "PPSFUNCS" PARENT oStatic[2] EVAL {|| PPSFUNCS->(dbGoTop()) }

DCAPPFIELD PPSFUNCS->AppModule INTO oAppBrowse CAPTION 'Menu ID' COLOR GRA_CLR_BLUE, GRA_CLR_WHITE

DCAPPFIELD PPSFUNCS->Menu INTO oAppBrowse CAPTION 'Menu Description' COLOR GRA_CLR_BLUE, GRA_CLR_WHITE

DCGETOPTIONS TOOLTIPCOLOR GRA_CLR_BLACK, GRA_CLR_YELLOW AUTORESIZE // BITMAP oBitmap

DCREAD GUI MODAL FIT OPTIONS GetOptions TITLE "PowerPlus Software Menu Configuration" SETAPPWINDOW ADDBUTTONS
Return nil
*
Function APP_ConfirmUpdate()
IF ConfirmBox( , "Do you really want to update this record?", "Update record", XBPMB_YESNO, XBPMB_QUESTION ) == XBPMB_RET_NO
RETURN APPOP_IGNORE
ENDIF
RETURN APPOP_PROCEED

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

Re: DCAPPEDIT & DCAPPBROWSE

#2 Post by rdonnay »

I was hoping I would never get a question about DCAPPEDIT and DCAPPBROWSE.

I have never used them in an application and I think you may be the first.

This is very old Xbase++ stuff that I decided to support in eXpress++ and wish I had not.

I haven't even looked at the code since 1999.

Do you have to use this?

This is just a command interface to the Xbase++ AppEdit() and AppBrowse() functions.
The eXpress train is coming - and it has more cars.

User avatar
unixkd
Posts: 579
Joined: Thu Feb 11, 2010 1:39 pm

Re: DCAPPEDIT & DCAPPBROWSE

#3 Post by unixkd »

Thanks Roger

If it works as intended, it is a great tool for simple and fast data capture.

Joe.

Post Reply