Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Invoke repaint of selection rectangle (Read 1740 times)
Alex
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 60
Joined: Nov 21st, 2006
Invoke repaint of selection rectangle
Jan 2nd, 2008 at 4:14pm
Print Post  
Hello,

I've got the following problem: If I select some objects, the bounding rectangle is painted. After that I arrange the objects programmatically but the selection rectangle is still in the same place.

I want the rectangle to be painted around the new coordinates of the arranged objects. Is there an easy way to accomplish that with builtin mechanics ?

best regards and a happy new year!

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Invoke repaint of selection rectangle
Reply #1 - Jan 2nd, 2008 at 5:24pm
Print Post  
Hi,

There is a private method that does that, and it seems we should make it public for use in such situations. You can call that method indirectly through some of the methods that change the selection state of an item. For example call Selection.Toggle(someRandomItem) twice, and the selection rectangle will be updated.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Invoke repaint of selection rectangle
Reply #2 - Jan 2nd, 2008 at 5:26pm
Print Post  
... and Happy New Year to you too!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint