Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create image dynamicaly
Message
From
31/08/2000 10:34:34
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00411191
Message ID:
00411268
Views:
12
>I can see the object in debugger, but I don't know how to display it in my form. oImg = CreateObject ("Image")

2 things, you shouldn't use CreateObject() to do this, because it creates the object out if VFP's lala land, with no connection to the form (after all, how would it know you want to add it to the form?). So, you can use the AddObject() or NewObject() methods of the form or container to create and add the object to the container.

Second, all objects are not visible when created programatically. This is so you can manipulate them and then show them so the user doens't see all the "crud" thats happening (like changing its size, position, and other properties.)

Thisform.AddObject('oImg', 'Image')
Thisform.oImg.Picture = "bmp.bmp"
Thisform.oImg.Visible = .T.
Previous
Reply
Map
View

Click here to load this message in the networking platform