Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-05

T*Edit align and anchors

10 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andrea Mauri

Dear all,
I have some problems with TDirectoryEdit, TFileNameEdit etc when I try to align them.
For example if I set align = alTop the edit is aligned and the button disappears. In the same way it seems that aligning and anchoring does not consider the button but only the edit.
Lazarus 0.9.29 r25796 FPC 2.4.0 i386-win32-win32/win64

andrea

Reply by email

Paul Ishenin
to Andrea Mauri
Andrea Mauri wrote 6 lines
Dear all, I have some problems with TDirectoryEdit, TFileNameEdit etc when I try to align them. For example if I set align = alTop the edit is aligned and the button disappears. In the same way it seems that aligning and anchoring does not consider the button but only the edit.

This is so by design.

Best regards,
Paul Ishenin.

Reply by email

Graeme Geldenhuys
to Paul Ishenin
Paul Ishenin wrote
> disappears. In the same way it seems that aligning and anchoring does not > consider the button but only the edit. This is so by design.

Umm, last time I was told this is a bug. I think I even report it as such over a year ago. Even though it is a "composite" component (more that one component acting as one and is a single icon on palette bar), the designer should treat it as one component and alignment & anchoring should work as expected - like all other components. Delphi does this with composite components.

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Reply by email

Paul Ishenin
to Graeme Geldenhuys
Graeme Geldenhuys wrote
Delphi does this with composite components.

We also checked how delphi works. And lazarus works as delphi here.

In delphi it is possible to use now an edit box with enbedded left and right buttons. This can be done in Lazarus too. At least I found how to do this for win32 and gtk2. But since the main goal now is to fix bugs not to create new I'd better wait with this component implementation for some time.

Anyway, if you want you can always place the editbutton to the panel and fix the layout problems.

Best regards,
Paul Ishenin.

Reply by email

Žilvinas Ledas
to Paul Ishenin
Paul Ishenin wrote
Anyway, if you want you can always place the editbutton to the panel and fix the layout problems.

How can I use editbutton within panel if I want it to be aligned alClient?

Regards
?ilvinas

Reply by email

Andrea Mauri
to Luiz Americo Pereira Camara

Il 31/05/2010 20.24, Luiz Americo Pereira Camara ha scritto:

Try BorderSpacing.Right := 40

I already use a workaround in order to solve the align problem using anchors, I just would like to know if it is a known bug or if actually, as I understood, is it defined in this way by design. Anyway, thanks!

Reply by email

Žilvinas Ledas
to Andrea Mauri: Il 31/05/2010 20.24, Luiz Americo Pereira Camara ha scritto: I already use a workaround…
Andrea Mauri wrote 9 lines
Il 31/05/2010 20.24, Luiz Americo Pereira Camara ha scritto: > > Try BorderSpacing.Right := 40 I already use a workaround in order to solve the align problem using anchors, I just would like to know if it is a known bug or if actually, as I understood, is it defined in this way by design. Anyway, thanks!

What workaround did you use?

Regards
?ilvinas Ledas

Reply by email