OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Fred Tomke on May 14, 2008, 02:09:24 PM

Title: Palette repaint issue
Post by: Fred Tomke on May 14, 2008, 02:09:24 PM
Hello
using ODCL 5.0.0.15 DEU from May, 12.
I have some troubles with a palette and I have no workaround yet. It so only in the palette (dcl_form_show layer_sc_layorder) when it is shown docked at show-method. It will be shown correctly after resizing or in floating mode.

Here you can see a video: http://www.opendcl.de/videos/palette/palette.html
And I attached the project.

Fred
Title: Re: Palette repaint issue
Post by: BazzaCAD on May 14, 2008, 02:13:26 PM
I think that's a 2009 issue....
Title: Re: Palette repaint issue
Post by: Fred Tomke on May 14, 2008, 03:22:26 PM
You're right, Barry, I forgot to mention, that this only occurs in 2009. But that's why I put a rectangle in the background, hoping to avoid that. In other palettes it works, but not in this one.

Fred
Title: Re: Palette repaint issue
Post by: Fred Tomke on May 14, 2008, 04:20:03 PM
There is something in my OnInitialize-function that makes me trouble  >:( .

Fred
Title: Re: Palette repaint issue
Post by: Fred Tomke on May 14, 2008, 04:25:42 PM
Got it: making something invisible in the OnInitialize causes this effect. When I comment only the lines out where the four controls shall be made invisible, suddenly the dark background appears.

Fred
Title: Re: Palette repaint issue
Post by: Fred Tomke on May 15, 2008, 12:05:52 AM
Hello Owen,

I believe that the changes which are made in the OnInit-function causes this effect.
I attached an example.
You can see the difference what happens when controls are changed (command LAF1) and nothing was changed (command LAF2).

Hope that helps.

Fred
Title: Re: Palette repaint issue
Post by: Fred Tomke on May 22, 2008, 06:30:27 AM
An additional note:

This problem occurs only if any transparant control is on the form AND in the OnInitialize-function changes the visibility states (dcl_control_setvisible) or values (dcl_control_setalue).

Setting backcolor to -16 (instead of -24) to every rectangle, button, optionbutton, checkbox and label solved this.

Fred
Title: Re: Palette repaint issue
Post by: owenwengerd on May 24, 2008, 12:44:16 PM
Fred, can you post this as a bug report on SourceForge? If possible, please include a very simple sample with as few controls as possible.