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