Page 1 of 1

ButtonBar

PostPosted: 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

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

Re: ButtonBar

PostPosted: 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

PostPosted: 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 oScansiona OF obar ;
RESOURCE "SCANNER" ;
PROMPT "Scansiona" ;
LEFT BTNRIGHT;
ACTION MSGINFO()


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