Working with dcl_PictureBox_PaintPicture was only possible to use images. ico.
This is correct for the method?
I posted the files to show it.
Velasquez
The problem is with specifying T for the UseMask argument for all four images, when only the .ico image includes a transparency mask. I changed the T to nil in all but the first list, then it displayed each image as expected.
I work with a PictureBox which has a fixed width but the height is variable.
First I get the height of PictureBox with dcl_Control_GetHeigh.
After I create an array with a standard image with LoadPictureFile.
The list size can create a problem? ?
I posted a partial image.
(dcl_PictureBox_PaintPicture LoadPictureFile_Form1_PictureBox1
(list
(list 0 0 106 T NIL) ;_ .png image -> OK
(list 0 1 106 T NIL)
(list 0 2 106 T NIL)
(list 0 3 106 T NIL)
(list 0 4 106 T NIL)
(list 0 5 106 T NIL)
(list 0 6 106 T NIL)
(list 0 7 106 T NIL)
(list 0 8 106 T NIL)
(list 0 9 106 T NIL)
(list 0 10 106 T NIL)
(list 0 11 106 T NIL)
(list 0 12 106 T NIL)
(list 0 13 106 T NIL)
;;; ...
) ;_ end of list
)
Hi velasquez,
I don't believe that the size of the list will be the problem but the time needed to be displayed because OnPaint will be called very very very often. An I suggest you to keep the taskmanager (for the amount of memory) in one of your eyes.
Regards,
Fred