Forums

Welcome Guest Search | Active Topics | Members

Turn Cursor to I while wanted to Add Text VObject Options
ChingYen
Posted: Saturday, April 26, 2008 5:14:19 PM
Rank: Advanced Member
Groups: Member

Joined: 3/3/2008
Posts: 42
Points: 126
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?
Alex Kon
Posted: Tuesday, April 29, 2008 7:45:52 AM
Rank: Advanced Member
Groups: Administration , Member

Joined: 1/31/2005
Posts: 376
Points: 373
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.
ChingYen
Posted: Wednesday, April 30, 2008 5:56:18 AM
Rank: Advanced Member
Groups: Member

Joined: 3/3/2008
Posts: 42
Points: 126
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.
Alex Kon
Posted: Thursday, May 01, 2008 2:50:10 AM
Rank: Advanced Member
Groups: Administration , Member

Joined: 1/31/2005
Posts: 376
Points: 373
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.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.