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
cpav  
#1 Posted : Monday, May 19, 2008 4:26:21 AM(UTC)
cpav

Rank: Advanced Member

Groups: Guest
Joined: 12/17/2007(UTC)
Posts: 49

Hi,

we want to add the following Vobjects on a form:

1.RectangleVObjectCreateDesigner

2.EllipseVObjectCreateDesigner

3.TextVObjectCreateDesigner

4.PolyLineVObjectCreateDesigner

5.LineVObjectCreateDesigner

6.FreehandVObjectCreateDesigner

7.ClosedPolyLineVObjectCreateDesigner

8.ClosedFreehandVObjectCreateDesigner

looking at MultilayerImageEditor sample, we see that the settings are:

1,2,4)pen width,pen color, brush color, fill choise

3)alignment, font, text color

5)pen width,pen color

Question 1)For 1,2,3,4,5 that are in sample, those are all the possible settings we can use? Or they are more that are not implemented on the sample?

Question 2)For 6,7,8 nothing exists. Can we have a sample that implements also those 3 Vobjects using their settings? Or if this is too big story, can you tell us what are the settings for each one of them?

cpav  
#2 Posted : Monday, May 19, 2008 4:48:27 AM(UTC)
cpav

Rank: Advanced Member

Groups: Guest
Joined: 12/17/2007(UTC)
Posts: 49

One more thing, in sample you set the correct context menu using event _multiLayerViewer.DesignerChanged, as below:

Private Sub _multiLayerViewer_DesignerChanged(ByVal sender As System.Object, ByVal e As Aurigma.GraphicsMill.WinControls.DesignerChangedEventArgs) Handles _multiLayerViewer.DesignerChanged

If e.NewDesigner.VObjects.GetLength(0) > 0 Then

UpdateVObjectContextMenu(CType(e.NewDesigner.VObjects(0), Aurigma.GraphicsMill.WinControls.VObject))

End If

If _multiLayerViewer.CurrentDesigner Is _multiLayerViewer.DefaultDesigner Then ClearAddObjectToggle()

If Not _selectObjectsFromListBox Then UpdateCurrentlySelectedObjects()

UpdateCurrentlySelectedObjectsDesigner()

End Sub

We do not use a multiLayerViewer control, on the other hand we use a bitmapViewer control which does not have the event DesignerChanged.

In which event we should put the above code in order to work for bitmapViewer like it does for multiLayerViewer? Or maybe we can have another idea to do this?

Thanks...

Alex Kon  
#3 Posted : Tuesday, May 20, 2008 1:21:45 PM(UTC)
Alex Kon

Rank: Advanced Member

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

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

Answer for the first question - yes, its pretty full list of base properties. Do you want to see some new features in these objects?

Regarding to the second question - the usage of these objects is the same, as, for example, RectangleVObjectCreateDesigner. All these designers have common base class where such properties as .Brush and .Pen are defined. So you can treat them in the same way as all other designers counted above.

And the last question - if you are using BitmapViewer control you can find all VObject-related events and properties in VObjectsRubberband class.

Edited by user Tuesday, May 20, 2008 1:22:35 PM(UTC)  | Reason: Not specified

cpav  
#4 Posted : Sunday, May 25, 2008 8:05:49 AM(UTC)
cpav

Rank: Advanced Member

Groups: Guest
Joined: 12/17/2007(UTC)
Posts: 49

Thanks Alex, i try it to see how it goes.

I have only one issue here. Please look the following code from MultiLayerImageEditor:

Code:
Private Sub UpdateVObjectContextMenu(ByVal obj As Aurigma.GraphicsMill.WinControls.VObject)
        Dim designer As Aurigma.GraphicsMill.WinControls.GenericVObjectEditDesigner = CType(obj.Designer, _
            Aurigma.GraphicsMill.WinControls.GenericVObjectEditDesigner)

        If TypeOf obj Is Aurigma.GraphicsMill.WinControls.RectangleVObject Then
            designer.ContextMenu = _penBrushSettingsContextMenu
        ElseIf TypeOf obj Is Aurigma.GraphicsMill.WinControls.EllipseVObject Then
            designer.ContextMenu = _penBrushSettingsContextMenu
        ElseIf TypeOf obj Is Aurigma.GraphicsMill.WinControls.LineVObject Then
            designer.ContextMenu = _penSettingsContextMenu
        ElseIf TypeOf obj Is Aurigma.GraphicsMill.WinControls.PolylineVObject Then
            designer.ContextMenu = _penBrushSettingsContextMenu
        ElseIf TypeOf obj Is Aurigma.GraphicsMill.WinControls.TextVObject Then
            designer.ContextMenu = _textSettingsContextMenu
        End If
    End Sub

In my application i also have to set a

Quote:
designer.ContextMenu = myContextMenu

We use Devexpress components with skins in all our forms and by using the simple contextMenu it 'destroys' all the image because the style is very simple. If we set it to a Devexpress popupmenu like

Quote:
designer.ContextMenu = myDevexpressPopUpMenu

it is not working. Is there a way to something for this?

It does not accept even ContexMenuStrip (in which we can set the back/fore color and make things little better). It needs only pure old fashion ContextMenu.

Any idea if and how we make it accept Devexpess popupmenu control, or at least accept ContextMenuStrip on which we have even little control on its colors, or anyway to make any possible change to solve this issue?

cpav  
#5 Posted : Tuesday, May 27, 2008 6:45:58 AM(UTC)
cpav

Rank: Advanced Member

Groups: Guest
Joined: 12/17/2007(UTC)
Posts: 49

Any idea yet?
cpav  
#6 Posted : Thursday, June 5, 2008 3:09:42 PM(UTC)
cpav

Rank: Advanced Member

Groups: Guest
Joined: 12/17/2007(UTC)
Posts: 49

Alex Kon wrote:
Hello,

Answer for the first question - yes, its pretty full list of base properties. Do you want to see some new features in these objects?

Well, yes. To be able to change the backcolor of the textVobjectCreateDesigner and to be able to set the width and height preferably in pixels....

Tamila  
#7 Posted : Tuesday, June 10, 2008 5:49:45 PM(UTC)
Tamila

Rank: Advanced Member

Groups: Guest
Joined: 3/9/2008(UTC)
Posts: 554

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

Quote:
To be able to change the backcolor of the textVobjectCreateDesigner

Please, take a look at this post - it contains example which demonstrates how to implement this feature:

http://forums.aurigma.co...ct-Background-Color.aspx

Quote:
...to be able to set the width and height preferably in pixels....

Unfortunately, it is impossible. All measurements in VObjects are in points. But you can easily transform pixels into points using GraphicsMill methods:

  • BitmapViewer.ControlToWorkspace() method;

  • Aurigma.GraphicsMill.UnitConverter class

  • Edited by user Tuesday, October 28, 2008 7:08:30 AM(UTC)  | Reason: Not specified

    Aurigma Support Team

    UserPostedImage Follow Aurigma on Twitter!

    cpav  
    #8 Posted : Wednesday, June 11, 2008 4:28:53 PM(UTC)
    cpav

    Rank: Advanced Member

    Groups: Guest
    Joined: 12/17/2007(UTC)
    Posts: 49

    Hi Tamila,

    well i asked this in forum and Alex Kon replied, but this was before you provide me with the solution from Support Case.

    Thanks again for provided sulotion! :d/

    Users browsing this topic
    Guest (4)
    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.