2010-02-01 15:37 UTC
Hello, Owen, I'm not sure whether to post as a reply on {2} or better here. That's why I do it here.
I'm going to build up a ActiveX sample for OpenDCL. I hope that I only used standard controls so I hope everybody can load and show the project. While playing around with the controls I discovered some problems which I don't know whether they are bugs or not.
I post them without any order of importance.
Fred
I'm going to build up a ActiveX sample for OpenDCL. I hope that I only used standard controls so I hope everybody can load and show the project. While playing around with the controls I discovered some problems which I don't know whether they are bugs or not.
I post them without any order of importance.
- Normally I can get the event function name of an activated event by calling something like (dcl_control_getproperty oControl "Clicked"). To avoid globale variables I tried to get the EnterCell event function name of the FlexGrid control in the project. It returned nil and I cannot set another function name at runtime. I don't know whether it's a bug or not.
- Have a look at the function statusbar_text. There you can see a line (dcl_AxObject_Get oPanel nil "Text"). If I call only (dcl_AxObject_Get oPanel "Text") instead then I get an error of too less arguments. I've found out that another argument must passed between control object and property name. The syntax in the control browser does not show this additional argument. Unfortunately, changing the text of the second panel has no effect. Maybe it is caused by the additional argument.
- Some properties seem to be read-only although they're officially not. So I tried to make the vertical scrollbar of the richtext control visible. Maybe someone else has much more luck.
- The prompting when a control fails to get imported should be improved. I have tried to import an instance of the HHCtrl component. After drawing a rectangle to locate the control nothing happens. I do remember a message in earlier releases that some controls are not desgined to be placed on a form. Otherwise the OpenDCL developer does not know why this happens (or better: does not happen).
- In my first idea to such a ActiveX sample I wanted to show pdf and dwf files in a form. But unfortunately, OpenDCL editor crashed when locating an instance of dwf viewer component. Then I tried Adobe Reader control. When loading the form in AutoCAD, AutoCAD crashed immediately. But I remember a small sample in this forum, could be shown succesfully. Maybe both crashes depended on the existing ActiveX controls of the form where they should be placed at. I didn't investigate furthermore. Maybe somebody else will do that.
Fred


