OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: copter on June 04, 2009, 09:35:27 AM

Title: Labels on a Picture Box
Post by: copter on June 04, 2009, 09:35:27 AM
Hello

How can I put labels controls on images without they "disapears" behing the picture box ?
I tried Ztab order but it is without effect when the form loads.
I tried also label.refresh in the "On paint " event of the picture box, but the label becomes unstable (It shakes)

Thanks for your help

Copter.
Title: Re: Labels on a Picture Box
Post by: owenwengerd on June 04, 2009, 11:13:15 AM
Instead of using label controls, use (dcl_PictureBox_DrawWrappedText) to draw your text in the picturebox.
Title: Re: Labels on a Picture Box
Post by: copter on June 04, 2009, 11:43:25 AM
Thanks Owen I'll do that.
But I have nearly the same problem with Textbox and Checkbox controls.
When one is bellow, the another one is behind ...
One example is attached
Copter
Title: Re: Labels on a Picture Box
Post by: Fred Tomke on June 04, 2009, 12:15:14 PM
Move the picture to the background in the z/taborder (and do not wonder that the picture seems to be over the other controls in the editor. it won't be so at runtime.).

If you only use a picture to color a dialog area then the controls over picture box should not use transparent backcolor but the same backcolor as the picture behind.

Fred
Title: Re: Labels on a Picture Box
Post by: copter on June 04, 2009, 01:24:06 PM
You are right.
It works in that way.
Thanks

Copter