Add-To-File button in Control Browser??

Started by alfwerner, February 04, 2011, 07:27:26 AM

Previous topic - Next topic

alfwerner

In the Control Browser I only find a Copy-To-Clipboard button, but no an Add-To-File botten. I would like to have this like "Add-event-to-file".

BazzaCAD

Where would you expect it to show up in the lisp file?
Events are blocks of code that always show up at the bottom of the lsp file.

But a property or method is just a single line of code that usually falls inside an event.
You probably wouldn't want to has something like:
Code (autolisp) Select
(dcl_Control_SetVisible Untitled_Form1_TextButton1 T)
just sitting at the bottom of your code, then it would get executed every time you loaded it...
So you'd probably have to cut & paste it into an event anyways, so why not just copy it to the clipboard in the 1st. place...
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

alfwerner

Yes, of course. I'm now relearning - some years ago I used ObjectDCL. Have forget too much. Thanks for answer!