>> Is it possible to create an image object at runtime in vfp 8
Of course. If you want it on a form just do this: ThisForm.AddObject( 'oImage', 'image' )
If it is an independent object, then use oImageRef = CREATEOBJECT( "image" )
Once you have created the object, just set its properties directly: WITH ThisForm.oImage .Top = 25 .Left = 50 .Picture = "C:\Graphics\myimage.jpg" [whatever else you need to set] .Visible = .T. ENDWITH
The important one to note is VISIBLE - when you create a new object at run time it is always instantiated with Visible = .F.
|