Welcome Guest! You need to login or register to make posts.



Go to last post Go to first unread
#1 Posted : Thursday, September 25, 2008 1:46:01 AM(UTC)

Rank: Newbie

Groups: Member
Joined: 1/15/2008(UTC)
Posts: 4

I want to enlarge the size of the drag grips on a vObjectsRubberband because they are too small for use with a touchscreen monitor.

How do I change the grip values?

Can only one corner be changed, or must all grips be set to the same size?

What about grip color?

Edited by user Thursday, September 25, 2008 4:37:47 AM(UTC)  | Reason: Not specified

#2 Posted : Friday, October 3, 2008 7:41:15 PM(UTC)

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)

This code sample allows to change the grips for ImageVObject:

_vObjectsRubberband.Layers.Insert(0, New WinControls.Layer("regions1"))
_vObjectsRubberband.CurrentLayer = VObjectsRubberband1.Layers.Item(0)

Dim bmp As New WinControls.ImageVObject(image, False, 0, 0)

Dim resizeAction As WinControls.ResizeVObjectAction = _
    CType(bmp.SupportedActions(VObjectAction.Resize), _

resizeAction.ResizeMode = WinControls.ResizeMode.Proportional
resizeAction.MajorResizePointPrototype = New WinControls.EllipseControlPoint(_
   New Size(50, 50), Brushes.Red, Pens.Black)

' deny rotate and scale
bmp.SupportedActions(WinControls.VObjectAction.Rotate).Enabled = False
bmp.SupportedActions(WinControls.VObjectAction.Skew).Enabled = False

Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
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.