Labels on a Picture Box

Started by copter, June 04, 2009, 09:35:27 AM

Previous topic - Next topic

copter

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.

owenwengerd

Instead of using label controls, use (dcl_PictureBox_DrawWrappedText) to draw your text in the picturebox.
Owen Wengerd (Outside The Box) / ManuSoft

copter

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

Fred Tomke

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

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

copter

You are right.
It works in that way.
Thanks

Copter