Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to add image to the Toolbar ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00184681
Message ID:
00184960
Vues:
50
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform