Recent

Author Topic: [S]Call anchor editor for a component that cannot be clicked in the form editor?  (Read 2661 times)

CM630

  • Hero Member
  • *****
  • Posts: 1521
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
I need to set the anchors for a TPairSliter.
I cannot click the splitter in the form editor.
The Anchor editor cannot be called from the popup menu ot the components editor  :o
Is there another way to call the AnchorEditor for TPairSliter?
« Last Edit: July 14, 2025, 10:42:22 am by CM630 »
Лазар 4,2 32 bit (sometimes 64 bit); FPC3,2,2

Dzandaa

  • Hero Member
  • *****
  • Posts: 501
  • From C# to Lazarus
Hi,

To use the anchor editor for the PairSplitter in the form editor, you have to click on the central dots of the splitter with the right mouse button

B->
Regards,
Dzandaa

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11789
  • Debugger - SynEdit - and more
    • wiki
The splitter in PairSplitter is intentionally not selectable.

Why would you need to change anchors for/to it?
You should use the 2 SplitterSides instead.

Or use a normal TSplitter.



I haven't checked the code, but in general controls like TPairSplitter do their own setup for embedded controls. They don't expect user interference, and they likely wouldn't work if there was.

CM630

  • Hero Member
  • *****
  • Posts: 1521
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Hi,

To use the anchor editor for the PairSplitter in the form editor, you have to click on the central dots of the splitter with the right mouse button

B->
Thanks, that worked!

The splitter in PairSplitter is intentionally not selectable.

Why would you need to change anchors for/to it?
...
The outer shape of the PairSplitter is a rectangle. It has to be located somewhere on the form.
Since it has Left and Top properties, it might need anchoring, like in my case.
« Last Edit: July 14, 2025, 10:44:52 am by CM630 »
Лазар 4,2 32 bit (sometimes 64 bit); FPC3,2,2

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11789
  • Debugger - SynEdit - and more
    • wiki
Sorry, I misread. I thought you want the actual (internal) splitter, not the entire component.

You can always select components from the treeview in the OI (just don't hide that).

CM630

  • Hero Member
  • *****
  • Posts: 1521
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Yes, I can select it, but there is no Anchor Editor in the pop-up menu.
But it occurs that after I open the Anchor Editor and click on a component in the Object Inspector, the Anchor Editor changes the edited component to the clicked one.
Лазар 4,2 32 bit (sometimes 64 bit); FPC3,2,2

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11789
  • Debugger - SynEdit - and more
    • wiki
Ok, I concluded from my workflow....

If you select the "Anchors" property in the grid below => then it will show an ... ellipses button => Press that, and the anchor editor will open (for that control).

Once the anchor editor is open, you can just select other controls, and it follows.

n7800

  • Hero Member
  • *****
  • Posts: 542
Yes, I can select it, but there is no Anchor Editor in the pop-up menu.

It would be really useful in the context menu of the Component Tree. There is already a draft patch for this on the bug tracker.

 

TinyPortal © 2005-2018