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
|
|
|
|
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)
|
|
|
|
|
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.