Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ImageList
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00234244
Message ID:
00234330
Views:
24
>Does anyone know if its possible to add an image to an
>ActiveX ImageList at runtime?
>
>I'd like to allow the user to pick an image with
>GETPICT()and then use that image in an ActiveX TreeView.
>
>Any thoughts?
>
>TIA

Hi Kevin,

I've used the Picture Clip ActiveX Control to initialize one or more ImageLists at runtime, so it can be done. However, I think you might want to try LOADPICTURE() rather than GETPICT(). I haven't tried this so it's a guess. GETPICT() returns a character expression, LOADPICTURE() returns an object reference. While the control's docs aren't terribly clear on this, it seems that it needs the latter.

hth,
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform