2016-08-09 14:36 UTC
I have this code to
- load and display a picture (WMF)
- load and display a tooltip
- create a temp-text with dcl-PictureBox-DrawText
- convert the temp-text to image with dcl-PictureBox-StoreImage
(progn
; a) show image
(dcl-PictureBox-LoadPictureFile (eval (read WMFViewName)) WMFName T)
; b) handle tooltip
(dcl-Control-SetToolTipTitle (eval (read WMFViewName)) tafel)
; c) create temp-text
(dcl-PictureBox-DrawText (eval (read WMFViewName)) (list (list 5 0 2 5 tafel 0)))
; d) store text as Image
(dcl-PictureBox-StoreImage (eval (read WMFViewName)))
)
It works fine when the dialogue is open and I use buttons and lists and so on. But if I call the code from "Oninitialize", only a) and b) are done. c) (and of course d) does nothing. Is it a limitation of the function?
Thanks
Peter
- load and display a picture (WMF)
- load and display a tooltip
- create a temp-text with dcl-PictureBox-DrawText
- convert the temp-text to image with dcl-PictureBox-StoreImage
(progn
; a) show image
(dcl-PictureBox-LoadPictureFile (eval (read WMFViewName)) WMFName T)
; b) handle tooltip
(dcl-Control-SetToolTipTitle (eval (read WMFViewName)) tafel)
; c) create temp-text
(dcl-PictureBox-DrawText (eval (read WMFViewName)) (list (list 5 0 2 5 tafel 0)))
; d) store text as Image
(dcl-PictureBox-StoreImage (eval (read WMFViewName)))
)
It works fine when the dialogue is open and I use buttons and lists and so on. But if I call the code from "Oninitialize", only a) and b) are done. c) (and of course d) does nothing. Is it a limitation of the function?
Thanks
Peter