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

Notification

Icon
Error

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

Rank: Newbie

Groups: Guest
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

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

Rank: Advanced Member

Groups: Guest
Joined: 8/3/2003(UTC)
Posts: 1,070

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

This code sample allows to change the grips for ImageVObject:

Code:

_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), _
        WinControls.ResizeVObjectAction)

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

_vObjectsRubberband.Layers.Item(0).VObjects.Add(bmp)
Sincerely yours,

Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!

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.