Ariel , Paolo,
I think :-) I got the complete picture now, I got the same problems
with showing pictures in a dialog peer instead off using the image
controls thenselves because they where provocing big memory leaks. So i
dive in this code and comeback with a real live working solution
Greetz, Ciao
Fernand
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.
Regards
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]