Palette repaint issue

Started by Fred Tomke, May 14, 2008, 02:09:24 PM

Previous topic - Next topic

Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

BazzaCAD

I think that's a 2009 issue....
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

Fred Tomke

There is something in my OnInitialize-function that makes me trouble  >:( .

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

owenwengerd

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.
Owen Wengerd (Outside The Box) / ManuSoft