Okay, I miss understood the question. I was looking at the Edit and alClient and seeing that the Edit didn't align the complete form area. Never looked at the button order.
Anyway, I agree one would expect the button order to be 2 1 I tested this under Windows and that is indeed what I get. Both under Lazarus and Delphi 7. See attached screenshots. I am using Lazarus 0.9.15 (rev 9158) on Windows 2000. Regards, - Graeme - PS: An interesting side note. Delphi doesn't publish the TButton's Align property in the Object Inspector as does Lazarus. On 04/05/06, Borut Maricic <[EMAIL PROTECTED]> wrote:
On 2006-05-04 at 18:30,
Graeme Geldenhuys ([EMAIL PROTECTED]) wrote:
> You never showed the code for Panel1...? How big is Panel1?
> Also it isn't a good idea to declare f1, f2 and E as local variables
> in FormCreate. You will never be able to reference it again....
I just happened to browse this thread. With all due respect,
what Todorov has made was - IMHO - an example that was
recreating an issue. And the issue is still repeatable with
no Panel1 and referring only to Form and using global
component declarations, of course.
So, the original question is grounded and I will just
restate it here:
The code sequence
f1 := TButton.Create(Form1);
with f1 do begin
Parent := Form1; Align := alRight; Caption := '1'; end;
f2 := TButton.Create(Form1);
with f2 do begin
Parent := Form1; Align := alRight; Caption := '2'; end;
positions buttons on the form like this
1 2
while one would expect
2 1
The original Todorov's question was: Bug or a feature?
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
-- There's no place like 127.0.0.1
Lazarus.png
Description: PNG image
Delphi7.png
Description: PNG image
