Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Hit testing handle indexes (Read 2005 times)
brianh
YaBB Newbies
*
Offline



Posts: 30
Joined: Jul 1st, 2008
Hit testing handle indexes
Jul 8th, 2008 at 10:38am
Print Post  
Hi,

Can someone tell me how the index returned by HitTestHandle() relates to the actual handles?

For instance, I want to know when the hit test handle represents the caption area in a TableNode.  In my tests I get the value 8 back, does this represent the 'move' handle, or caption handle, or what?

Are there any constants defined that I can compare against?

Thanks

Brian
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Hit testing handle indexes
Reply #1 - Jul 8th, 2008 at 11:10am
Print Post  
Hi,

8 is the value for the move-node handle, and for tables it is usually associated with the caption area. The values for the other handles are listed here:InteractionState

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
brianh
YaBB Newbies
*
Offline



Posts: 30
Joined: Jul 1st, 2008
Re: Hit testing handle indexes
Reply #2 - Jul 8th, 2008 at 2:27pm
Print Post  
Hi,

That's what I thought, but it would be nice if there were some constants defined for these values. Sad

Thanks.

Brian
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Hit testing handle indexes
Reply #3 - Jul 8th, 2008 at 2:54pm
Print Post  
Hi,

Well, the AdjustmentHandles values are powers of 2 with that index as the exponent 8) You could define some symbolic constants of your own, and we will add ones to the next release:


public class HandleIndices
{
     public const int ResizeTopLeft = 0;
     public const int ResizeTopRight = 1;
     public const int ResizeBottomRight = 2;
     public const int ResizeBottomLeft = 3;
     public const int ResizeTopCenter = 4;
     public const int ResizeMiddleRight = 5;
     public const int ResizeBottomCenter = 6;
     public const int ResizeMiddleLeft = 7;
     public const int Move = 8;
     public const int Rotate = 9;
}

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
brianh
YaBB Newbies
*
Offline



Posts: 30
Joined: Jul 1st, 2008
Re: Hit testing handle indexes
Reply #4 - Jul 10th, 2008 at 1:35pm
Print Post  
Thanks, I'll them into my project. Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint