DCREAD FIT and CJCommandbars

This forum is for support of XCodeJock
Post Reply
Message
Author
Wolfgang Ciriack
Posts: 478
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

DCREAD FIT and CJCommandbars

#1 Post by Wolfgang Ciriack »

Hello Roger,
if i have a dialog with a CJCommandbar and a Browse, the FIT clause of the dcread displays the Browse over the Commandbar and its statusbar. As a workaround i put a DCSAY to the top and the bottom. Is there a better solution ?

Code: Select all

...
CJCOMMANDBARS oCommandbar ;
  EVAL {|o|_BuildMenu(o,aButt,Getlist, AnzDatSaetze), ;
         o:execute := {|o|PostAppEvent(xbeP_User+111,o)} }
DCUSEREVENT xbeP_User+111 ACTION {|a,b,o| StartAction(a:Id,aButt) }

@1, 80 DCSAY "" 
@3.5,1 DCBROWSE oBrowse ;
     DATA cAlias ;
     SIZE 90, 20 ;
     FIT ;
     CURSORMODE XBPBRW_CURSOR_ROW ;
     PRESENTATION aPresPar1 ;
     ITEMSELECTED {|| StartAction(CJ_A_BEA,aButt)} ;
     NOHSCROLL
@24.5,80 DCSAY ""

DCREAD GUI ;
   TITLE 'Mandanten' ;
   OPTIONS GetOptions ;
   MODAL ;
   SETAPPWINDOW ;
   SETFOCUS @oBrowse ;
   FIT
Attachments
withoutgets.gif
withoutgets.gif (3.36 KiB) Viewed 7210 times
Withgets1.gif
Withgets1.gif (6.8 KiB) Viewed 7210 times
_______________________
Best Regards
Wolfgang

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

Re: DCREAD FIT and CJCommandbars

#2 Post by rdonnay »

Here is my latest sample of a TabbedToolBar with a browse.

You will need to rebuild XCODEJOCK.DLL.
copy x*.prg to \exp19\source\xcodejock and run build19_sl1.bat

copy xcodejock.ch to \exp19\include
copy tabbedtoolbar.* to \exp19\xcodejock\samples\commandbars
Attachments
tabbedtoolbar.zip
tabbedtoolbar sample
(33.32 KiB) Downloaded 746 times
The eXpress train is coming - and it has more cars.

Post Reply