ToolBar Width

Moderator: Rathinagiri

Post Reply
User avatar
karweru
Posts: 158
Joined: Fri Aug 01, 2008 1:51 pm
DBs Used: DBF,mysql,mariadb,postgresql,sqlite,odbc
Been thanked: 2 times
Contact:

ToolBar Width

Post by karweru » Sun May 06, 2018 7:39 pm

Dear All,

Anyway to query a toolbar width (something like the total sum of tool button widths)?
Kind regards,
Gilbert.

User avatar
andyglezl
Posts: 963
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Has thanked: 20 times
Been thanked: 40 times
Contact:

Post by andyglezl » Sun May 06, 2018 8:09 pm

Hi Karweru
DEFINE TOOLBAR <ControlName>
[ OF | PARENT <ParentWindowName> ]
[ BUTTONSIZE <nWidth> , <nHeight> ]

win1.ControlName.ButtonWidth * nButtons
win1.ControlName.ButtonHeight * nButtons
Andrés González López
Desde Guadalajara, Jalisco. México.

User avatar
karweru
Posts: 158
Joined: Fri Aug 01, 2008 1:51 pm
DBs Used: DBF,mysql,mariadb,postgresql,sqlite,odbc
Been thanked: 2 times
Contact:

Post by karweru » Sun May 06, 2018 8:25 pm

Thank you Andres,

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

User avatar
andyglezl
Posts: 963
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Has thanked: 20 times
Been thanked: 40 times
Contact:

Post by andyglezl » Mon May 07, 2018 5:06 pm

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 ]
Andrés González López
Desde Guadalajara, Jalisco. México.

Post Reply