Page 1 of 1

ToolBar Width

Posted: Sun May 06, 2018 7:39 pm
by karweru
Dear All,

Anyway to query a toolbar width (something like the total sum of tool button widths)?

Re: ToolBar Width

Posted: Sun May 06, 2018 8:09 pm
by andyglezl
Hi Karweru
DEFINE TOOLBAR <ControlName>
[ OF | PARENT <ParentWindowName> ]
[ BUTTONSIZE <nWidth> , <nHeight> ]

win1.ControlName.ButtonWidth * nButtons
win1.ControlName.ButtonHeight * nButtons

Re: ToolBar Width

Posted: Sun May 06, 2018 8:25 pm
by karweru
Thank you Andres,

This seems to be giving inaccurate results because the buttons are not all equal in width.

Re: ToolBar Width

Posted: Mon May 07, 2018 5:06 pm
by andyglezl
No entiendo, en la definicion del toolbar se le está indicando
BUTTONSIZE <nWidth> , <nHeight> que supongo es para todos
los botones igual. en la definicion del boton, no tiene estas propiedades
como para que sean diferentes.
A menos que se vea afectado por:
--------------------------------------------------------------------------
I do not understand, in the definition of the toolbar it is being indicated
BUTTONSIZE <nWidth>, <nHeight> that I guess is for everyone
the buttons equal. in the definition of the button, it does not have these properties
so that they are different.
Unless it is affected by:

IMAGESIZE <nWidth> , <nHeight>, [ STRICTWIDTH ] ó [ AUTOSIZE ]



DEFINE TOOLBAR <ControlName>
[ OF | PARENT <ParentWindowName> ]
[ BUTTONSIZE <nWidth> , <nHeight> ]
[ IMAGESIZE <nWidth> , <nHeight> ]
[ STRICTWIDTH ]

[ FONT <cFontName> ]
[ SIZE <nFontSize> ]
[ BOLD ]
[ ITALIC ]
[ UNDERLINE ]
[ STRIKEOUT ]
[ TOOLTIP <cTooltipText> ]
[ FLAT ]
[ BOTTOM ]
[ RIGHTTEXT ]
[ GRIPPERTEXT ]
[ BORDER ]
[ BREAK ]

BUTTON <Controlname>
[ CAPTION <cCaption> ]
[ PICTURE <cPictureName> ]
[ ACTION | ON CLICK | ONCLICK <ActionProcedureName> | <bBlock> ]
[ TOOLTIP <cToolTipText> ]
[ SEPARATOR ]
[ AUTOSIZE ]
[ DROPDOWN ]
[ WHOLEDROPDOWN ]
[ CHECK ]
[ GROUP ]
[ NOTRANSPARENT ]