Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement