Information générale
Catégorie:
Contrôles ActiveX en VFP
>>>Try verifying if oPicture is a valid object after LoadPicture
>>>
>>>oPicture = LoadPicture(...)
>>>If VarType(oPicture)="O" And !IsNull(oPicture)
>>> ....
>>>Else
>>> Wait Wind "oPicture isn't an object - LoadPicture failed"
>>>EndIf
>>
>>You might want to verify that the imagelist control is being instantiated before the the flexgrid control.
>
>
>Hello Joseph
>MSFlexGrid
>Does not require ImageList. But if it to use I receive a similar error
>THISFORM.oleFlex1.object.CellPicture= THISFORM.oleImageList.ListImages(1).Picture
>"Member not found"
I haven't used the flexgrid control, however, I've received similar "Member not found" errors using ActiveX toolbar and listview controls.
What objects method code are you using to executed the above code. I've found that if I change the value of an activeX controls property from another objects method code, especially another ActiveX control, strange things can happen.
Try putting your code in the flexgrid init code if it's not already their. Better yet, subclass the control and create a method to do load the images. Also, try releasing any object variables you create right after your done with them.
Précédent
Suivant
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