Layout's configuration dialog


Author
Message
Iryna Borzenko
Iryna Borzenko
Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)
Group: Forum Members
Posts: 17, Visits: 1
Hello,

I am interest in the next thing. Does Nevron have a dialog window for configuration layouts objects (something like NFillStyleTypeEditor for fill style)? Nevron Diagram Designer has 'Diagram Options' dialog... Is it possible to reuse this window or such things should be implemented by hands?

Thanks in advance!
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi Iryna,

You can easily add all the diagram commands you see in the Diagram Designer to your form using the following code in your form's Load event handler:

NDiagramCommandBarsManager manager = new NDiagramCommandBarsManager();

manager.View = nDrawingView1;

manager.ParentControl = this;



Best Regards,
Nevron Support Team


Iryna Borzenko
Iryna Borzenko
Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)
Group: Forum Members
Posts: 17, Visits: 1
Thank you, but it is match more then i need. Is it possible to use 'Diagram options' dialog apart from NDiagramCommandBarsManager (without showing toolbars)???
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi,

To execute only a specific command from the command bars manager, you can use the following code:

NDiagramCommandCollection commands = manager.Commander.Commands;

NDiagramButtonCommand command = (NDiagramButtonCommand)commands.GetCommandFromId((int)DiagramCommand.ShowLayoutDialog);

command.Execute();

Please, note that you should have previously created and attached a command bars manager to the drawing view like this:

manager = new NDiagramCommandBarsManager();

manager.View = m_View;

 

In this way, when you do not set the parent of the diagram command bars manager to be the current Windows form, the menus and the toolbars will not be shown and you will get exactly the functionality you require.



Best Regards,
Nevron Support Team


Iryna Borzenko
Iryna Borzenko
Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)
Group: Forum Members
Posts: 17, Visits: 1
Thank you! It is awesome!
Iryna Borzenko
Iryna Borzenko
Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)
Group: Forum Members
Posts: 17, Visits: 1
I have one more question about LayoutDialog. How can I configure layouts list of this window. For example I need not DockLayout, how can i remove it from there?
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

You have no access to the content of the internal Nevron Diagram dialogs. If your requirements have grown to a point at which you want to modify the Layout Dialog itself it will be best to create a dialog of your own. In this way you will be able to implement exactly the features you require.



Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search