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 :-)
Greetz
Fernand
Fernand Vanrie ha scritto:
I need some help to resolve a puzzle for me
I trie to draw a line in a Imagecontrol in a Dialog
The The line is drawn with the Sub below but only when the sub is called
from a mouseclick (event) on a other control in the dialog
When calling the sub from a codeline no drawing, when a I put a "print"
before the "DrawRect" then after closing the "printwindow" the draw is
done ????
why ???
I guess that your modifications become visible only after a repaint event
Please see this code snippet and adapt to your needs (just replace the
dialog with your imagecontrol):
http://codesnippets.services.openoffice.org/Office/Office.DrawingOnDialogs.snip
ciao
Paolo M
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org