On 03/07/07, Steven Lloyd <[EMAIL PROTECTED]> wrote:
Is there a way to draw a line over a label?  Mine keeps disappearing.  I
cannot seem to get the DC lines thing to work, even without a label...

Steve,

I think you have a misunderstanding about how drawing works in
windows.  Windows doesn't remember anything about what you draw, and
so every time it needs to re-draw a window it will have forgotten
about what you drew previously.  You need to draw during the window's
WM_PAINT event which will be called by windows each time it need to
redraw the window in question.

Search the list archives for 'onPaint' and 'WM_PAINT' and you should
find some examples of how to draw into a Win32::GUI::Window such that
the drawing remains ....

It's actually pretty difficult (maybe even impossible with the current
Win32::GUI codebase) to draw on top of a label, whilst maintaining
it's capabilities to draw the tet of your label.

What is it that you are trying to represent on your UI?  Perhaps we
can suggest another way?

Regards,
Rob.

Reply via email to