I have some "Picture-Boxes" where I load picture, set Tooltip and create "Draw text":
(dcl-PictureBox-LoadPictureFile (eval (read WMFViewName)) WMFName T)
(dcl-Control-SetToolTipTitle (eval (read WMFViewName)) tafel)
(dcl-PictureBox-DrawText (eval (read WMFViewName)) (list (list 5 0 2 5 tafel 0)))
Everything works fine, but when I click on an image the drawn text disappears. All boxes have a Doubleclick event; only some have a OnClick Event but no code behind.
Is it by design? Are the "Draw-Methods" only temporary?
Peter
The Draw methods draw temporary graphics. You can use dcl-PictureBox-StoreImage (http://www.opendcl.com/HelpFiles/index.php?page=Reference/Method/PictureBox/StoreImage.htm) to make it permanent.
Thanks Owen!