Recent

Author Topic: Clicking forms title bar in form designer does not select form  (Read 11762 times)

snorkel

  • Hero Member
  • *****
  • Posts: 817
Clicking forms title bar in form designer does not select form
« on: September 07, 2012, 07:46:10 pm »
I kind of find this annoying, when I have a form that is filled with a panel or a page control
the only way to select the form is to scroll up in the object inspector and click on it there.
Shouldn't click on the forms title bar select it?  It's ok if the form does not have something aligned to client as you can click where the form shows and it selects it.

Is there a way to get this to work the way I expect it to?
***Snorkel***
If I forget, I always use the latest stable 32bit version of Lazarus and FPC. At the time of this signature that is Laz 3.0RC2 and FPC 3.2.2
OS: Windows 10 64 bit

Knipfty

  • Full Member
  • ***
  • Posts: 232
Re: Clicking forms title bar in form designer does not select form
« Reply #1 on: September 07, 2012, 08:05:54 pm »
Hi snorkel,

If you hit the <esc> key, you will see that the form gets selected.  I run into this when I have a object on the for that aligns with the client and takes up teh entire form.

Knipfty
64-bit Lazarus 2.2.0 FPC 3.2.2, 64-bit Win 11

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Clicking forms title bar in form designer does not select form
« Reply #2 on: September 07, 2012, 08:19:09 pm »
No, the form's title bar selects and moves the form designer it self. As Knipfty said pressing the escape key will auto select the container that the currently selected object is in (parent property), hitting it multiple times will eventually reach the form and stop there.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

SunyD

  • Guest
Re: Clicking forms title bar in form designer does not select form
« Reply #3 on: September 08, 2012, 01:32:33 pm »
You can select it from TreeList in Objectinspector.

snorkel

  • Hero Member
  • *****
  • Posts: 817
Re: Clicking forms title bar in form designer does not select form
« Reply #4 on: September 10, 2012, 04:58:17 pm »
Yes, the escape key does work, but you sometimes have to hit it multiple times to get back to the main form.  I also know I can just click it in the treeview in object inspector, but if you have a lot of stuff on the form you have to scroll all the way up and then click it. Having it select it in the treeview when you click the title bar is nice and fast with a single action, all the other ones involve multiple actions to select the form so it's events and properties show in the object inspector.

In all versions of Delphi single clicking the title bar also directly selects it in the treeview in the object inspector.  there is no reason clicking the title bar could not also select the form in the treeview in the object inspector.

I files a bug report in the Mantis tracker.
***Snorkel***
If I forget, I always use the latest stable 32bit version of Lazarus and FPC. At the time of this signature that is Laz 3.0RC2 and FPC 3.2.2
OS: Windows 10 64 bit

Avishai

  • Hero Member
  • *****
  • Posts: 1021
Re: Clicking forms title bar in form designer does not select form
« Reply #5 on: September 10, 2012, 05:26:54 pm »
If you are just wanting to get to the Form, you can just hold down the Escape key.  It will stop when it gets to the Form.
Lazarus Trunk / fpc 2.6.2 / Win32

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Clicking forms title bar in form designer does not select form
« Reply #6 on: September 10, 2012, 05:46:06 pm »
In all versions of Delphi single clicking the title bar also directly selects it in the treeview in the object inspector.  there is no reason clicking the title bar could not also select the form in the treeview in the object inspector.

I files a bug report in the Mantis tracker.

That's wrong delphi undocked designer behaves the same way also you can't select the form from its tile.
I do not know about the docked designer never liked the beast and never used it my self.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

snorkel

  • Hero Member
  • *****
  • Posts: 817
Re: Clicking forms title bar in form designer does not select form
« Reply #7 on: September 12, 2012, 11:07:09 pm »
In all versions of Delphi single clicking the title bar also directly selects it in the treeview in the object inspector.  there is no reason clicking the title bar could not also select the form in the treeview in the object inspector.

I files a bug report in the Mantis tracker.

That's wrong delphi undocked designer behaves the same way also you can't select the form from its tile.
I do not know about the docked designer never liked the beast and never used it my self.

Yes you can. I just tried it in Delphi Xe2 (fully docked mode) and when I click the title area of the form it selects the form in the object inspector in a single click.
I am talking about clicking in the area between the form caption and the minimize/maximize buttons.
Believe me in Delphi it selects the form in the object inspector.
***Snorkel***
If I forget, I always use the latest stable 32bit version of Lazarus and FPC. At the time of this signature that is Laz 3.0RC2 and FPC 3.2.2
OS: Windows 10 64 bit

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Clicking forms title bar in form designer does not select form
« Reply #8 on: September 13, 2012, 12:29:35 am »
That's one for the dock extension to enhance, Lazarus does not support docked mode (yet?) only through 3rd party extensions.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

snorkel

  • Hero Member
  • *****
  • Posts: 817
Re: Clicking forms title bar in form designer does not select form
« Reply #9 on: September 14, 2012, 07:33:28 pm »
Delphi does it in undocked mode as well, Lazarus does not dock the forms, so it's really the same if the ide is docked or not.
Delphi has done this as far back as I can remember as clicking the forms title area should be the same as if you click in the empty form itself.
***Snorkel***
If I forget, I always use the latest stable 32bit version of Lazarus and FPC. At the time of this signature that is Laz 3.0RC2 and FPC 3.2.2
OS: Windows 10 64 bit

Bart

  • Hero Member
  • *****
  • Posts: 5666
    • Bart en Mariska's Webstek
Re: Clicking forms title bar in form designer does not select form
« Reply #10 on: September 15, 2012, 02:05:57 pm »
Delphi has done this as far back as I can remember as clicking the forms title area should be the same as if you click in the empty form itself.
Delphi 3 does not behave like this (I know it's ancient).
I have to select Form1 from the dropdownlist in OI in order to select it.

Also an argument for not implementing this is: If I drag the form to another position, I would not expect, nor want, the OI to select a different component then was previously selected.

Bart

 

TinyPortal © 2005-2018