Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Expanded Hit test (Read 2433 times)
TimNZ
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 60
Joined: Feb 23rd, 2009
Expanded Hit test
Sep 10th, 2009 at 12:09pm
Print Post  
Initially I wanted this for TreeViewNode, but this could be expanded for all nodes.

I would liik to do a hit test on a point on a node and return an Enum value indicating the specific area e.g.
* Scrollbar
* Caption text
* Caption image
* Item text
* Item image
* Border
* Expand/Collapse button
* Nothing (e.g. blank space between end of text and scrollbar)

Currently TreeViewNode.ItemFromPoint(PointF) will return an item even if point is on the scrollbar.
Nor can I tell in MouseClick event if clicking the expand/collapse button triggered the event.

Cheers,
Tim
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint