Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Cancellling ObjectModified event (Read 4989 times)
Stuart
Junior Member
**
Offline


Short, fat and bald, that's
me.

Posts: 64
Location: Lincs, UK
Joined: Sep 5th, 2008
Cancellling ObjectModified event
Sep 11th, 2008 at 4:29pm
Print Post  
I want my users to be able to move but not resize a box. As there's no behaviour defined that allows just that I thought about handling thje ObjectModified event and cancelling it if the value of selHandle <> 8, but I can't seem to figure out how to cancel the event.

Things are Soooooo much simpler in C#/.Net (my usual stomping ground).
  

-- &&Stuart
Back to top
YIM  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Cancellling ObjectModified event
Reply #1 - Sep 12th, 2008 at 8:12am
Print Post  
Set box.MnpHandlesMask = 256.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Stuart
Junior Member
**
Offline


Short, fat and bald, that's
me.

Posts: 64
Location: Lincs, UK
Joined: Sep 5th, 2008
Re: Cancellling ObjectModified event
Reply #2 - Sep 12th, 2008 at 8:24am
Print Post  
Oh, cool! I hadn't thought of looking for something like that, just cancelling the event. But your way just stops the event from being able to fire.

Neat.

FWIW, I'm about at the limit of what I can do with the trial version so the boss is going to have to get his credit card out.  Wink
  

-- &&Stuart
Back to top
YIM  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Cancellling ObjectModified event
Reply #3 - Sep 12th, 2008 at 8:51am
Print Post  
The trial version doesn't have any limitations apart from displaying the nag dialog, so you don't have to press your boss yet.
  
Back to top
 
IP Logged
 
Stuart
Junior Member
**
Offline


Short, fat and bald, that's
me.

Posts: 64
Location: Lincs, UK
Joined: Sep 5th, 2008
Re: Cancellling ObjectModified event
Reply #4 - Sep 12th, 2008 at 8:54am
Print Post  
Sweet!  Cheesy
  

-- &&Stuart
Back to top
YIM  
IP Logged
 
Stuart
Junior Member
**
Offline


Short, fat and bald, that's
me.

Posts: 64
Location: Lincs, UK
Joined: Sep 5th, 2008
Re: Cancellling ObjectModified event
Reply #5 - Sep 12th, 2008 at 12:48pm
Print Post  
Stoyo wrote on Sep 12th, 2008 at 8:12am:
Set box.MnpHandlesMask = 256.

Just a though, it would be nice if the option existed to completely hide the handles instead of just showing them in a different colour.
  

-- &&Stuart
Back to top
YIM  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Cancellling ObjectModified event
Reply #6 - Sep 12th, 2008 at 2:31pm
Print Post  
ShowDisabledHandles = false.
  
Back to top
 
IP Logged
 
Stuart
Junior Member
**
Offline


Short, fat and bald, that's
me.

Posts: 64
Location: Lincs, UK
Joined: Sep 5th, 2008
Re: Cancellling ObjectModified event
Reply #7 - Sep 12th, 2008 at 2:57pm
Print Post  
I'm obviously having a bad day!  Roll Eyes

Sorry.
  

-- &&Stuart
Back to top
YIM  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint