Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create image dynamicaly
Message
De
31/08/2000 10:34:34
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00411191
Message ID:
00411268
Vues:
11
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform