This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Turn Cursor to I while wanted to Add Text VObject

Hi,

By using the Aurigma Example, we can actually add textVobject to the multilayer viewer by click on the button and click on the design area again. but, now, the question is, how can I make it so, once I click on the button to add text, my cursor will become "I" and change to normal once it's added?

Okay, that question is simple, where, when i click on the button, i just put Cursor.Current, then when it's added, change it back to default....

But, the tricky part is, if the user click on the add button, and decided to change to add something else, means cancel the "TextVObjectCreateDesigner"....I would prefer it to change back to default.

Is there any good way to control this?
Hi,

What do you think about such method: subscribe to the DesignerChanged event and turn cursor to "I" each time when TextVObjectCreateDesigner is attached?
Alex Kon
Hi,

What do you think about such method: subscribe to the DesignerChanged event and turn cursor to "I" each time when TextVObjectCreateDesigner is attached?


Yes, to turn the cursor to I is simple, but, how could i change back to normal if TextVobjectCreateDesigner is being cancel? means that after I click on the "add text" button, and found that, actually i would like to add image, or do some other job...
how could i detect is a textvobjectcreatedesigner is being cancel?

Thanks.
Hi,

When any other designer except TextVObjectCreate designer is attached to the control. So, only when mouse click will cause text addition - cursor will be "I", in all other cases it will looks as arrow, or anything else what you wish.