OpenDCL Forums

OpenDCL => Studio/Dialog Editor => Topic started by: alfwerner on February 04, 2011, 07:27:26 AM

Title: Add-To-File button in Control Browser??
Post by: alfwerner on February 04, 2011, 07:27:26 AM
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".
Title: Re: Add-To-File button in Control Browser??
Post by: BazzaCAD on February 04, 2011, 09:36:11 AM
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...
Title: Re: Add-To-File button in Control Browser??
Post by: alfwerner on February 04, 2011, 11:41:35 AM
Yes, of course. I'm now relearning - some years ago I used ObjectDCL. Have forget too much. Thanks for answer!