dcl-PictureBox-DrawText - text disappears

Started by Peter2, July 28, 2016, 04:48:33 AM

Previous topic - Next topic

Peter2

I have some "Picture-Boxes" where I load picture, set Tooltip and create "Draw text":

Code (autolisp) Select

(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
Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10

owenwengerd

The Draw methods draw temporary graphics. You can use dcl-PictureBox-StoreImage to make it permanent.
Owen Wengerd (Outside The Box) / ManuSoft

Peter2

Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10