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

Notification

Icon
Error

Options
Go to last post Go to first unread
Ichiro  
#1 Posted : Thursday, March 01, 2007 1:34:19 AM(UTC)
Ichiro

Rank: Member

Groups: Member
Joined: 2/26/2007(UTC)
Posts: 8

Is it possible to move vobjects by setting some properties?

If it gets out of working area, there is no way to get it back to the working area so...
Ichiro Komoda
Alex Kon  
#2 Posted : Friday, March 02, 2007 1:18:35 PM(UTC)
Alex Kon

Rank: Advanced Member

Groups:
Joined: 1/31/2005(UTC)
Posts: 458

Was thanked: 5 time(s) in 5 post(s)
Hello Ichiro

Size and position of the VObject is determined by its bounds and transformation matrix. In your case you could change VObject.Transform property to shift object into visible area. Here is a simple code snippet which just illustrates how to do it (this code moves currently selected object 30 pixels right and 40 pixels down):
Code:
If (_multiLayerViewer.CurrentDesigner.VObjects.Length > 0) Then
	Dim a As Aurigma.GraphicsMill.WinControls.IVObject = _multiLayerViewer.CurrentDesigner.VObjects(0)
	a.Transform.Translate(30, 40)
	a.Update()
End If
Ichiro  
#3 Posted : Tuesday, March 06, 2007 12:52:19 AM(UTC)
Ichiro

Rank: Member

Groups: Member
Joined: 2/26/2007(UTC)
Posts: 8

Thank you very much, Alex.

I am very new to VB and Graphics Mill, I should have read the manual thoroughly...

Sorry for the trouble and thanks again.
Ichiro Komoda
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.