Rank: Advanced Member Groups: Member
Joined: 3/3/2008 Posts: 47 Points: 141
|
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?
|
Rank: Advanced Member Groups: Administration
, Member
Joined: 1/31/2005 Posts: 386 Points: 403
|
Hi,
What do you think about such method: subscribe to the DesignerChanged event and turn cursor to "I" each time when TextVObjectCreateDesigner is attached?
Best wishes, Alex.
|
Rank: Advanced Member Groups: Member
Joined: 3/3/2008 Posts: 47 Points: 141
|
Alex Kon wrote: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.
|
Rank: Advanced Member Groups: Administration
, Member
Joined: 1/31/2005 Posts: 386 Points: 403
|
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.
Best wishes, Alex.
|