Button-handler and drawing
Posted: Wed Aug 01, 2007 6:13 pm
Can we draw after the gs:set-visible command ?
This is only an example to show the effect . I can see the green line and even the blue line which is drawn after the set-visible command .
But i can not see the red line after pressing the run button .
If i minimize the Mdialog-window and then maximize it again i see the red line - or if i set the background after drawing to eg. green ( but not white what is already the background) .
Code: Select all
( gs:draw-line 'L1 0 200 200 0 gs:green )
(gs:set-visible 'Mdialog true )
( gs:draw-line 'L1 50 200 200 200 gs:blue )
( define ( ButtonRun-handler )
( println "Button Run" )
( gs:draw-line 'L1 0 0 200 200 gs:red )
;( gs:set-background 'Mcanvas gs:green )
)
But i can not see the red line after pressing the run button .
If i minimize the Mdialog-window and then maximize it again i see the red line - or if i set the background after drawing to eg. green ( but not white what is already the background) .