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