Changing label captions

Started by thatcadguy, September 22, 2009, 05:50:04 AM

Previous topic - Next topic

thatcadguy

Is there anyway to avoid having the text bleed into itself like this?

Just using dcl_Control_SetCaption right before a heavy data extraction process.

Pretty sure this is Windows' fault, not OpenDCL's.

copter

Try this inside your loop:

(dcl_Control_SetCaption 'Label "")
(dcl_Control_Redraw 'Label)
(dcl_Control_SetCaption 'Label  "My text")

Copter

owenwengerd

Which version of OpenDCL Runtime are you using? I'm pretty sure this problem is fixed in current builds.

thatcadguy

Quote from: owenwengerd on September 22, 2009, 09:22:24 AM
Which version of OpenDCL Runtime are you using? I'm pretty sure this problem is fixed in current builds.

6.0.0.3 on 2008

thatcadguy

Quote from: copter on September 22, 2009, 08:28:52 AM
Try this inside your loop:

(dcl_Control_SetCaption 'Label "")
(dcl_Control_Redraw 'Label)
(dcl_Control_SetCaption 'Label  "My text")

Copter

Thanks Copter, that works like a charm.

Btw, just installed 6.0.0.5 and am still seeing the same behavior (before using copter's method)

owenwengerd

I just did a quick test changing the caption manually in a modeless dialog, and it repainted correctly. It may be that your processing loop does not do allow Windows to process messages. If that's the case, the following might work as well (and use less processor time):

(dcl_Control_SetCaption 'Label  "My text")
(dcl_Control_Redraw 'Label)

Fred Tomke

Hi, thatcadguy, in my experiences I could solve this by using BackColor (for the label) -16 instead of -24.

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

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