ToolBar Width

Moderator: Rathinagiri

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

ToolBar Width

Post by karweru »

Dear All,

Anyway to query a toolbar width (something like the total sum of tool button widths)?
Kind regards,
Gilbert.
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: ToolBar Width

Post by andyglezl »

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: 220
Joined: Fri Aug 01, 2008 1:51 pm
DBs Used: DBF,mysql,mariadb,postgresql,sqlite,odbc
Contact:

Re: ToolBar Width

Post by karweru »

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: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: ToolBar Width

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