OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: orlandkim on March 27, 2008, 06:48:27 AM

Title: Change Form background
Post by: orlandkim on March 27, 2008, 06:48:27 AM
Hi people .,

I need to change form background.
In my layout project the background is white but OpenDCL don´t leave me change the default backgroud color (gray).

Is this possible ? How ?

I tried using dcl_Control_SetBackColor but don´t work.

Thanks
Title: Re: Change Form background
Post by: owenwengerd on March 27, 2008, 09:47:09 AM
Try placing a rectangle control on your form behind all the form's controls. Set the rectangle to resize with the form. You can then set the rectangle's background color to whatever you want the form background color to be.
Title: Re: Change Form background
Post by: orlandkim on March 28, 2008, 07:23:41 AM
Good Idea.

I´ve tried to put the PictureBox with backgroud color but was very horrible.

In rectangle control do you know how property or method I change the background color.
LISP ? DCL ?
Because in my opendcl it isn´t there.

Thanks
And best regards.
Title: Re: Change Form background
Post by: BazzaCAD on March 28, 2008, 08:16:53 AM
What version are you on?

(dcl_Control_SetBackColor Untitled_Form1_Rectangle1
    newValue [as Long])