[Lazarus] All edit+button components have issues with alignment

Graeme Geldenhuys graemeg at opensoft.homeip.net
Fri Jun 26 10:54:14 CEST 2009

Mattias Gärtner wrote:
> Put TDateEdit into a TPanel.

Surely that is not the recommended usage for *all* button edit based
components?  If so, why not simply fix the component to have an embedded
panel (as you suggest) without the developer having to do that manually.
Resource count would be the same either way, but the latter would be
much easier to work with. Or fix the Form Designer, to take the button
into account when it shows the grab handles or does width alignment
against other components.

So is this going to be an issue with all composite based components? For
example, in tiOPF there are some custom GUI components that are all
composite components. Meaning, it is a few components working together
as one: Double selection listbox, advanced date range which uses radio
buttons as well, etc... So alignment or selection in Form Designer will
fail on all those, unless I manually embed them in another TPanel.
Sounds more like a bug in Lazarus, because Delphi's Form Designer
handles composite components as one large component.

  - Graeme -

fpGUI - a cross-platform GUI toolkit using Free Pascal

More information about the Lazarus mailing list