Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to add image to the Toolbar ?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00184681
Message ID:
00184960
Views:
46
>Hi,
> After i post your code into mine, the error message shown : ImageList must be initialised first before can be used....how to initialise?? Again, I put imagelist before toolbar...

John,

Without seeing what you're doing it's a little hard. I use a Picture Clip control to hold all the images and then load them programmatically, like this:
FOR lni = 0 TO 5
  ThisForm.ToolImages.ListImages.Add(,,ThisForm.CtrlPicClip.GraphicCell(lni))
NEXT
The .CtrlPicClip is the Picture Clip control. I do it this way because there are three ImageLists to initialize. This reduces the amount of time it takes the control to load because there's only one bitmap, but in can contain as many images as I need.

If the above doesn't work for you, I'll post more specific code tomorrow.
George

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

Click here to load this message in the networking platform