Hi Ariel,

Ariel Constenla-Haile ha scritto:
Hello Fernand,

On Friday 20 March 2009, 11:47, Fernand Vanrie wrote:
Paolo ,

Thanks for tyour quick Replay, but the problem must be elsware: its
the codeines before my drawings who are giving trouble oImagcontrol.visible(false) ..some other actions oImagcontrol.visible((true)

When i let the ImageControl visible, then the line is drawn when changing from invisible to visible no more drawing... same effect witht enabling and setting the dimensions to 0 . I try further with the paintlistener or let the imagecontrol visible al the time
 :-)

as Paolo told you, the things you do with the image control trigger a
repaint, that is, what you have drawn must be redrawn (by you, not by the image control itself).

As a simple example, just draw a line a dialog, then move the dialog
so that part of the line is not visible because it's off-screen. When
you move the dialog back to make it fully visible, that part of the
line has disapear, you must redraw it. Also if you add a paint
listener you'll see when and how many repaint event take place.


I must recognize that I wasn't very clear in my reply.
Your explanation sounds much better :-)

Thanks
Paolo M

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to