dcl-PictureBox-DrawText - text disappears

Started by Peter2 · 2016-07-28 11:48 UTC · 2 replies · SMF topic #2398

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 {2} to make it permanent.
Thanks Owen!