Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ControlHosts layout and Collision detection (Read 1849 times)
Tom Steer
Guest


ControlHosts layout and Collision detection
Nov 30th, 2005 at 9:09am
Print Post  
Hi,

I'd like to be able to define a set of ControlHost (and other objects) and lay them out against an underlying table or matrix of cells.

The underlying table will contain fixed width columns but variable height rows.  Each of the ControlHost objects will be one row high and one or more columns wide.

I'd like to be able to have the drag and drop functionality snap to cells within the table.  Is this possible given that the cells can be of varying heights?

Failing this is there a way of simulating this behaviour using the available commands and objects?

Finally is there a way of getting all the objects that a ControlHost is overlapping, rather than just calling the Intersects method for a particular object?

Cheers,
Tom
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ControlHosts layout and Collision detection
Reply #1 - Nov 30th, 2005 at 12:30pm
Print Post  
Hello,

FlowChart.NET does not have any methods that could help you align items to variable-sized cells under the items.

Still it should be easy to implement the alingment logic yourself, and when an itemCreated ot itemModified event is raised, just call your method to align the item.

There isn't any method that returns all object overlapped by another object. Use 'for each' loop and call Intersects to find all overlapping items. That won't work faster if we implement it as a FlowChart.NET method.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint