Page 1 of 1
Question about CADViewerControl
Posted: 12 Jul 2019, 20:51
by CoffeeShop
1/ how can disable left panel? I set false value for entity and property,but left panel still visible.
2/ i disable some buttons on toolbar but it not works. when i close and reopen form, it visible all like default
Re: Question about CADViewerControl
Posted: 12 Jul 2019, 21:08
by support
CoffeeShop wrote: ↑12 Jul 2019, 20:51
1/ how can disable left panel? I set false value for entity and property,but left panel still visible.
The entity properties panel can be hidden using a
CADViewerControl.PropertyEntityPanelVisible property.
CoffeeShop wrote: ↑12 Jul 2019, 20:51
2/ i disable some buttons on toolbar but it not works. when i close and reopen form, it visible all like default
Could you please post the code you have tried?
Mikhail
Re: Question about CADViewerControl
Posted: 15 Jul 2019, 05:57
by CoffeeShop
I change buttons on design time. I want to change it by code on run time but no see property.
Ex: disable open button on toolbar
Could you help me some code?
what event of CADViewerControl is fired when user select graphical object on its face (not select on entity treeview)?
Re: Question about CADViewerControl
Posted: 15 Jul 2019, 19:11
by support
Hello,
CADViewerControl provides an access to the collection of toolbar buttons through a
CADViewerControl.ToolsPanel.Buttons property. Each item in the collection is an instance of a
ToolBarButton class which supports Enabled and Visible properties, so you can disable or hide a particular button in the following way:
Code: Select all
cadViewerControl1.ToolsPanel.Buttons[0].Visible = false; // hides Open button
cadViewerControl1.ToolsPanel.Buttons[0].Enabled = false; // disables Open button
CoffeeShop wrote: ↑15 Jul 2019, 05:57
what event of CADViewerControl is fired when user select graphical object on its face (not select on entity treeview)?
Unfortunately, there is no event which fires when selecting an entity in ViewerCADPictureBox.
Mikhail
Re: Question about CADViewerControl
Posted: 16 Jul 2019, 18:02
by CoffeeShop
I study this control for a week. Although it has a bit hard to use, but I think it awesome.
Thanks for your help, Mikhail
