buttonbar bottom

Post Reply
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

buttonbar bottom

Post by Silvio.Falconi »

I wish create a buttonbar at the bottom of dialog
why not run ?

Code: Select all



 DEFINE DIALOG oDlgSelCampi       ;
   TITLE "Selezione campo"     ;
   SIZE nWidth, nHeight   PIXEL     ;
   STYLE nOr( DS_MODALFRAME, WS_POPUP, WS_CAPTION,  4 ) ;
   COLOR CLR_BLACK,  nRgb( 245,244,234)


   DEFINE BUTTONBAR oBar OF oDlgSelCampi SIZE 80,64 2010 BOTTOM

       DEFINE BUTTON OF obar ;
         filename ".\bitmaps\conferma.bmp"       ;
          LEFT BTNRIGHT;
          GROUP ;
          action oDlgSelCampi:end()

         DEFINE BUTTON OF obar ;
         filename ".\bitmaps\Esci.bmp"       ;
          PROMPT  "Chiudi" ;
          LEFT ;
          GROUP ;
          action oDlgSelCampi:end()


  ACTIVATE DIALOG oDlgSelCampi center
   RETURN NIL

 
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: buttonbar bottom

Post by nageswaragunupudi »

1. Create ButtonBar without BOTTOM clause.
2. ON INIT oBar:GoDown()
Regards

G. N. Rao.
Hyderabad, India
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: buttonbar bottom

Post by Silvio.Falconi »

ok thanks
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: buttonbar bottom

Post by Silvio.Falconi »

nageswaragunupudi wrote:1. Create ButtonBar without BOTTOM clause.
2. ON INIT oBar:GoDown()

I make a check
I have a your sample test ( fwh 15.04) with you use Bottom clausole and not oBar:godown() on init but oDlg:resize()

Image

that's why I'm sometimes confused by your answers
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
Post Reply