Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview and Imagelist using Icons embeded in .app
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00495438
Message ID:
00495565
Views:
12
Hello George.

Thanx for your sugestion.

About my question.
I am letting the user decide on the icon for the menu option.
The icons which I want to save in the app are the default icons.

have a look at what i am trying to do.

http://www14.brinkster.com/hitenkm/TreeTry.gif

Thanx for ur time and sugestion.

>>Hello people.
>>
>>Just wanted to know if this is a known bug in VFP 6.
>>
>>When I have a imagelist load icons embed in the app, It gives me a ole error at runtime. but when i exclude the icons from the app, it seems to run very nicely.
>>
>>Is there a valid explanation for this ?
>>I wanted to put the icons in the app.
>>
>>thanx in advance ...
>
>Hiten,
>
>While I've heard of this problem before, I've never experienced it myself. Since I use a different method of populating a treeview or listview, I'm not sure whether or not it's my method that's the reason or something else I do. IAC, even if this doesn't solve the problem, my suggestion might have another benefit.
>
>I gather all the bitmaps for my listviews and treeviews into a single bitmap. I use the Picture Clip AciveX control and load the other controls (via the GraphicCell property) in the control's Init. You can see how I do this this if you download my Obj2Bmp application from here.
>
>The benefits (even if it doesn't solve your problem) is that rather than having to load a number of different bitmaps, you only have to load one. This means less file I/O and better performance. Further, if it doesn't work, there's only one additional file cluttering up the application's home directory.
>
>If you decide to try this, please let me know if it does solve the problem.
>
>PS - Obj2Bmp can be used to solve the biggest shortcoming of working with the Picture Clip control. By placing a shape on a form and placing the individual bitmaps within the shape, it's easy to create and maintain the image that the control uses.
Regards
Hiten K M

( The best and the worst are yet to come .. keep coding ! )

My Resume >>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform