Recent

Author Topic: TLvlGraphControl  (Read 742 times)

Dzandaa

  • Sr. Member
  • ****
  • Posts: 349
  • From C# to Lazarus
TLvlGraphControl
« on: May 16, 2024, 11:22:27 am »
Hi,
Discovering TLvlGraphControl :)

Is there a way/example to draw the controls vertically instead of horizontally?

Is it possible to move nodes?

If no, is there another control that allows you to create a layered graph?

Add nodes, create bindings, etc...

Thank you.

B->
Regards,
Dzandaa

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10224
  • Debugger - SynEdit - and more
    • wiki
Re: TLvlGraphControl
« Reply #1 on: May 16, 2024, 12:31:24 pm »
Not that I am aware of.

As for drawing vertically, you can create an inherited class, override the paint method(s) and switch the x/y coordinates in those methods.

As for moving... Nothing build in. But maybe as long as each node stays within its "level" (column), you can try to change the "DrawPosition". I haven't tried it though.


There is a project in the examples folder. I have no idea if it answers your questions.

Dzandaa

  • Sr. Member
  • ****
  • Posts: 349
  • From C# to Lazarus
Re: TLvlGraphControl
« Reply #2 on: May 16, 2024, 03:14:52 pm »
Hi,
@Martin_fr

I already tried the example but it doesn't fit my needs :)

Thank you.

Still looking :)

B->
Regards,
Dzandaa

 

TinyPortal © 2005-2018