Recent

Author Topic: Drawing selectable connections  (Read 9042 times)

jamie

  • Hero Member
  • *****
  • Posts: 6888
Re: Drawing selectable connections
« Reply #15 on: October 29, 2017, 06:25:01 pm »
at intersections that involve thats, you can first test where the  mouse is closes too and select that one.
or  in such cases, you can have a floating list box that will pop up at that intersection with the list of
possible items to select .
   Using a TlistBox that is not visible except when you need is a good idea.  You can set the position of the
box to appear where your mouse cursor is in cases of multiple hits. Populate the list first with the possible hits.

 each object should have a hit test function, you enumerate through them each time you click and build a list of them

 when you reach the last one in the list, you test for more then one, if so, show the list box, otherwise, pick the
only there.

The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018