OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: sysuwzx on August 11, 2015, 10:48:44 PM

Title: problems with opendcl about slider usage
Post by: sysuwzx on August 11, 2015, 10:48:44 PM
here's my question. i want the text box show the value of the slider as i scroll the slider. how should i do? the source code is in the attachment
Title: Re: problems with opendcl about slider usage
Post by: Fred Tomke on August 11, 2015, 11:12:34 PM
Hello, and welcome,

1st: Have you already tried the tutorial (http://opendcl.com/wordpress/?page_id=10)?
2nd: Please save a new project first before activating events because the projectname ist part of the event name. In the odcl file the event is stored as c:Untitled/SliderTest/Slider#OnScroll and in the code you've used c:slidertest/SliderTest/Slider#OnScroll, that doesn't match.
3rd: I recommend to define events of modal forms "hidden" or "private", they don't need to bee defined outside of your command.

Regards, Fred
Title: Re: problems with opendcl about slider usage
Post by: sysuwzx on August 11, 2015, 11:44:54 PM
thanks a lot, it's very kind of you!
firstly, i just learn about opendcl in that tutorial you provide with and i'm learning the second part of it.  I think i can write one lisp and run it , but still have the trouble.
secondly, now i run the program you modified and i works. it happens to be the reason you say before.
thirdly, thanks for your suggestion. 

Still, are there some programs with lisp and odcl files i can learn from? till now i can not find much. otherwise some of them is very complicated. it will be very helpful.
Title: Re: problems with opendcl about slider usage
Post by: Fred Tomke on August 12, 2015, 12:06:27 AM
Hi, I recommend you to follow the sample from Barry's sample from Autodesk university (http://www.opendcl.com/tutorials/OpenDCL_Tutorial.zip). The palette sample is based on a tool I created for a former employer. I also recommend you to have a look at some samples at Show & Tell (http://www.opendcl.com/forum/index.php?board=6.0) and in the FAQs (http://www.opendcl.com/forum/index.php?board=20.0).
Regards, Fred
Title: Re: problems with opendcl about slider usage
Post by: sysuwzx on August 12, 2015, 05:24:43 AM
thanks! i'm looking forward to it!  :)
Title: Re: problems with opendcl about slider usage
Post by: owenwengerd on August 12, 2015, 07:42:31 AM
In addition to Fred's suggestions, there are numerous samples included with OpenDCL Studio in the XXX\Samples folder (where XXX depends on your language version). You can run these with the OPENDCLDEMO command.