OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Pieter on March 22, 2012, 11:59:11 AM

Title: Cleanup (hide events)
Post by: Pieter on March 22, 2012, 11:59:11 AM
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
Title: Re: Cleanup (hide events)
Post by: Fred Tomke on March 22, 2012, 02:11:48 PM
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
Title: Re: Cleanup (hide events)
Post by: owenwengerd on March 24, 2012, 09:14:30 AM
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.