Page 1 of 1

ButtonBar and buttons

PostPosted: Sat Jan 06, 2018 6:07 pm
by Silvio.Falconi
I wish Know if is possible make a modify on buttonbar .
I explain you
I wish have the possibilty to move some buttons at the right angle as this :

Image

this picture is made with a oldest class ( not of fwh) now run bad.


I tried with :

oHelp:= TBtnBmp():NewBar(,, "help.bmp",,,, .F., obar, .F.,,, .F.,,,,,,,,,,,,, .F.,,, )
oHelp:nWidth:=30
oHelp:nLeft:= obar:nWidth-100

But I can fix the position and when I move the dialog it is allway on the same position

Re: ButtonBar and buttons

PostPosted: Sat Jan 06, 2018 6:20 pm
by cnavarro
Use clause BTNRIGHT


DEFINE BUTTON OF oBarMdi PROMPT "Exit" ;
FILE "D:\Fwh\FwhTeam\BmpsVS_32\MappedTracepointDisable_32x_24.bmp" ;
ACTION ( oWnd:End() ) BTNRIGHT ;
GROUP LABEL "Salir" COLORS CLR_WHITE, METRO_OLIVE


Re: ButtonBar and buttons

PostPosted: Sat Jan 06, 2018 6:31 pm
by Silvio.Falconi
thanks run good

I made

Code: Select all  Expand view
DEFINE BUTTON OF obar ;
     filename "help.bmp"       ;
      LEFT BTNRIGHT;
      GROUP ;
      action oAllegati:end()

     DEFINE BUTTON OF obar ;
     filename "Chiudi.bmp"       ;
      PROMPT  "Chiudi" ;
      LEFT ;
      GROUP ;
      action oAllegati:end()


and this is the result
Image

the button help is too large also if not have the prompt
the button chiudi is not at the end of dialog
any solution ?