[Lazarus] toolbar and toolbutton issues
zeljko
zeljko at holobit.net
Wed Dec 5 16:32:53 CET 2012
On Wednesday 05 of December 2012 15:59:27 michael.vancanneyt at wisa.be wrote:
> On Wed, 5 Dec 2012, Graeme Geldenhuys wrote:
> > On 2012-12-05 14:33, Graeme Geldenhuys wrote:
> >> See attached screenshot showing the clipping and resize issues.
> >
> > More notes…
> >
> > * image size: It seems the ImageList doesn't auto-detect the size of
> >
> > the images I added, and I added them all at once using multi-select.
>
> This is a consequence of the below. You must first set the width and
> height, then the individual images will be cropped to that width and
> height.
>
> > * image size: I took a chance and set the ImageList.Width & .Height
> >
> > properties. At first glance I thought that was just the width
> > and height of the TImageList component (eg: like found in TLabel or
> > TButton), but apparently that controls the image sizes. Better
> > property names would probably have been ImageWidth and ImageHeight.
>
> These names are dictated by Delphi compatibility.
>
> > * Looking at the screenshot I sent, Toolbar.Transparent = False, yet
> >
> > the Toolbar seems transparent, because the the TForm.Color =
> > clMoneyGreen. You see the green color in the designer and at runtime.
> > Changing the Toolbar.Transparent property makes no difference.
>
> Maybe GTK/Qt doesn't support that ?
Afair TToolbar is derived from TCustomControl and it does not have native
handle of eg. QToolbar under Qt, so it seem that LCL is doing all drawing
stuff. How it works on windows or carbon ?
zeljko
More information about the Lazarus
mailing list