Image inside cetrainer
Hello friends!
here the function to place image on your cetrainer,
to add image, go in Table ----> add file,
add the function to your trainer where name_image refers to the file that you added.
I hope this helps
attachBackground function (wc, tblFile)
MainGUI [xxx] = createPicture (MainGUI [xx])
MainGUI [xxx] .loadFromStream (findTableFile (tblFile) .Stream)
wc.OnPaint = function (sender)
Local c = sender.getCanvas ()
Local bitmap = MainGUI [xxx] .getBitmap ()
c.draw (120.0, bitmap)
end
end
attachBackground (MainGUI [1], [[name_image.jpg]])