Page 1 of 1

buttonbar bottom

Posted: Thu Oct 29, 2020 12:02 pm
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

 

Re: buttonbar bottom

Posted: Fri Oct 30, 2020 9:15 am
by nageswaragunupudi
1. Create ButtonBar without BOTTOM clause.
2. ON INIT oBar:GoDown()

Re: buttonbar bottom

Posted: Sat Oct 31, 2020 8:08 am
by Silvio.Falconi
ok thanks

Re: buttonbar bottom

Posted: Sun Nov 01, 2020 11:10 am
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