OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Emiliano on October 15, 2013, 03:38:19 AM

Title: dcl_Control_SetBackColor not work
Post by: Emiliano on October 15, 2013, 03:38:19 AM
Hello to all,

I inserted a Slideview on a ControlBars

I would like to modify, by code, the background color from white to black:

Code (autolisp) Select

dcl_Control_SetBackColor TEST_Form_FormTest_SlideView1 0)


Unfortunately it does not work, the color is always white.
I also tried to modify 'Event Invoke' but the result does not change.

Do you have any idea?
Title: Re: dcl_Control_SetBackColor not work
Post by: roy_043 on October 15, 2013, 07:32:42 AM
For the dcl (vector_image) function I use 256 for black and 255 for white.
Title: Re: dcl_Control_SetBackColor not work
Post by: owenwengerd on October 15, 2013, 02:07:39 PM
I think the color you want to change is set when creating the slide file. Try making the slide with a black background.
Title: Re: dcl_Control_SetBackColor not work
Post by: roy_043 on October 16, 2013, 01:48:37 AM
I don't think a background color is stored in the .sld file.
@ Emiliano: I have tested this and
Code (autolisp) Select
(dcl_Control_SetBackColor TEST_Form_FormTest_SlideView1 0)
works just fine.
So perhaps it is something else?

Note: Forget my previous post. In ODCL 256 is ByLayer color (i.e. default color of current layer).