Cleanup (hide events)

Started by Pieter, March 22, 2012, 11:59:11 AM

Previous topic - Next topic

Pieter

With R2012 the user sees all the C:commands.
So I would like to prevent this.
Is this possible?
Is it possible to claen this up?
Also the popup of Autocad that display all the commands.
Or is it best to use names that the user doesn't use (example starting with c:xx..)

Is there a solution for this cleaning?

Regards
Pieter

Fred Tomke

Hi, no, there isn't. When creating a command in C#, I can add the commandflag for NoHistory. Then it also won't appear in the list of available commands. But in OpenDCL all the globally defined commands will be shown. You can reduce this if you define all the event functions as local functions for your modal forms. But you will need globally defined commands for the events in modeless forms.

Regards,
Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

owenwengerd

If your event handlers don't need to interact with the AutoCAD editor, you can set the control's Event Invoke property to '0 - Synchronous' to execute your event handler without sending it through the command processor.
Owen Wengerd (Outside The Box) / ManuSoft