dcl_Control_SetBackColor not work

Started by Emiliano, October 15, 2013, 03:38:19 AM

Previous topic - Next topic

Emiliano

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?

roy_043

For the dcl (vector_image) function I use 256 for black and 255 for white.

owenwengerd

I think the color you want to change is set when creating the slide file. Try making the slide with a black background.
Owen Wengerd (Outside The Box) / ManuSoft

roy_043

#3
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).