General information
Category:
ActiveX controls in 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.
Hi again
I use it in Commandbutton.CLICK() method. I want to store bitmaps to a exists FlexGrid cells. I think it is problem ActiveX and VFP both... In Visual Basic I have not any error with it... I will try to make subclass, maybe it will work correctly.
Thanks for you reply.
Denis.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only