Page 1 of 1

ButtonBar

Posted: Wed Jan 10, 2018 12:12 pm
by ctoas
Hello friends.

In ButtonBar is it possible to align all buttons from right to left?

Thank you

Re: ButtonBar

Posted: Wed Jan 10, 2018 12:17 pm
by Silvio.Falconi
BtNRIGHT comand

Re: ButtonBar

Posted: Wed Jan 10, 2018 12:27 pm
by ctoas
In case BTNRIGHT puts only the last button on the right, is it correct?

Re: ButtonBar

Posted: Wed Jan 10, 2018 3:05 pm
by Silvio.Falconi
YES
SAMPLE
DEFINE BUTTONBAR obar _3D SIZE 100, 32 OF oAllegati 2015 GDIPLUS BOTTOM NOBORDER

DEFINE BUTTON _ OF obar ;
RESOURCE "SCANNER" ;
PROMPT "Scansiona" ;
LEFT BTNRIGHT;
ACTION MSGINFO()


OR
insert where you want but then you must insert also a resize function
_:= TBtnBmp():NewBar("Scansiona",,,,,, .F., obar, .F.,,, .F.,,,,,,,,,,,,, .F.,,, )
_:nLeft:= obar:nWidth-120