Sign in Join

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

Mailing lists / lazarus / 2015-03

Default Form placement

9 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

C Western

I have noticed that the default position for a form in the LCL is poDesigned, while in Delphi it is poDefaultPosOnly. PoDesigned seems an odd choice ? it is far to easy to place a form on a large monitor while designing that is off screen on a small one. Is there a reason for this difference?

Colin

Reply by email

Kostas Michalopoulos
to C Western

I guess old Delphi did that (well, all Delphis i have used did that but i only used Delphis up to 7 and most of my Delphi experience is with Delphi 2).

Also TBH i prefer poDesigned myself because i dislike the windows moving around in the run/edit cycle when i design the UI first. I always change it later (to one of the po<blah>Center) of course. Also i think i used poDefaultPosOnly only once...

C Western wrote 14 lines
I have noticed that the default position for a form in the LCL is poDesigned, while in Delphi it is poDefaultPosOnly. PoDesigned seems an odd choice ? it is far to easy to place a form on a large monitor while designing that is off screen on a small one. Is there a reason for this difference? Colin -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150309/4677cf52/attachment.html>

Reply by email

Virgo Pärna
to Kostas Michalopoulos
Kostas Michalopoulos wrote 5 lines
I guess old Delphi did that (well, all Delphis i have used did that but i only used Delphis up to 7 and most of my Delphi experience is with Delphi 2).

I can confirm, that in Delphi 5 default is poDesigned. So it really is for Delphi compatibility

Virgo P?rna

Reply by email

C Western
to Virgo Pärna
Virgo P?rna wrote 10 lines
On Mon, 9 Mar 2015 14:08:31 +0100, Kostas Michalopoulos wrote: > > I guess old Delphi did that (well, all Delphis i have used did that but i > only used Delphis up to 7 and most of my Delphi experience is with Delphi > 2). > I can confirm, that in Delphi 5 default is poDesigned. So it really is for Delphi compatibility

I currently have Delphi 7 and XE3, and in both of these the default is poDefaultPosOnly, as I indicated in my initial message, so it looks as though though the default changed in Delphi around version 6. Should the LCL default be changed to reflect this? (I have certainly been caught out by forms left at poDesigned, and it is an easy mistake to make, and may only be obvious when you run the program away from the development machine.)

Colin

Reply by email

C Western
to Bart
Bart wrote 15 lines
On 3/9/15, C Western wrote: > I currently have Delphi 7 and XE3, and in both of these the default is > poDefaultPosOnly, Just tested Delphi 7: default is poDesigned. Bart -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Slightly baffled - just double checked. My Delphi 7 definitely has a default of poDefaultPosOnly, and I don't think this is settable by the user.

Colin

Reply by email

C Western
to C Western
C Western wrote 28 lines
On 09/03/15 18:38, Bart wrote: > On 3/9/15, C Western wrote: > >> I currently have Delphi 7 and XE3, and in both of these the default is >> poDefaultPosOnly, > > Just tested Delphi 7: default is poDesigned. > > Bart > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > Slightly baffled - just double checked. My Delphi 7 definitely has a default of poDefaultPosOnly, and I don't think this is settable by the user. Colin -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Sorry - my mistake - I was testing on Delphi 2007, not Delphi 7. I had lost track of the version names. My original comment still stands - the current default is not poDesigned.

Colin

Reply by email

Kostas Michalopoulos
to C Western

Doesn't Delphi use a single window interface with embedded form nowadays? Probably this is why it has a poDefaultPosOnly default instead of poDesigned, which i think makes more sense for the multi window interface of Lazarus and Delphi1-to-7.

C Western wrote 46 lines
On 09/03/15 19:10, C Western wrote: > On 09/03/15 18:38, Bart wrote: > >> On 3/9/15, C Western wrote: >> >> I currently have Delphi 7 and XE3, and in both of these the default is >>> poDefaultPosOnly, >>> >> >> Just tested Delphi 7: default is poDesigned. >> >> Bart >> >> -- >> _______________________________________________ >> Lazarus mailing list >> >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >> >> > Slightly baffled - just double checked. My Delphi 7 definitely has a > default of poDefaultPosOnly, and I don't think this is settable by the > user. > > Colin > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > Sorry - my mistake - I was testing on Delphi 2007, not Delphi 7. I had lost track of the version names. My original comment still stands - the current default is not poDesigned. Colin -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150310/a403dde5/attachment.html>

Reply by email

C Western
to Kostas Michalopoulos
Kostas Michalopoulos wrote
Doesn't Delphi use a single window interface with embedded form nowadays? Probably this is why it has a poDefaultPosOnly default instead of poDesigned, which i think makes more sense for the multi window interface of Lazarus and Delphi1-to-7.

You are right about poDesigned not making so much sense with the single docked window layout, as you can't move the form with the mouse. (I believe lazarus can also be set up this way, at least using experimental patches.) I did some testing with Delphi XE3 - the default empty form has Position = poDefaultPosOnly and Top = Left = 0. If you edit Top or Left with the keyboard, the form doesn't move, but the IDE changes the Position to poDesigned.

Colin

Reply by email