User Interface and Selection
What is the User Interface good for?
If you only intend to display a drawing or a model and allow the user to zoom, scroll, choose the view direction and select objects, you will not need the user interface. If you want to allow the user to manipulate the geometry of the model or drawing, then it is convenient (but not necessary) to display the CADability user interface. It consist of three parts:
- Control Center
- Tool Bars
- Menu
How to implement my own user interface?
You may implement any kind of user interface you want. To use the command routing mechanism of CADability call ExecuteMenu. You will find the required menu IDs in the file MenuResource.xml which defines the structures of the various menues. To find out about the state of certain menu items that CADability expects to be displayed (like disable the "move" item in the menue when nothing is selected) use the UpdateMenu method.