Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MS coolbar 6.0 - Imagelist
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00149740
Message ID:
00150920
Vues:
33
>Hi George,
>
>I think the ActiveX had one of its strange gremlins in it.
>I just tried again the MS toolbar, dropped 3 MS imagelist activeX controls on my form, added some BMP's to the Imagelists, popped up the Toolbar control and strange enough I now could select one of the Imagelists on my form in the coolbar.Imagelist, coolbar.HotImagelist and coolbar.DisabledImagelist.
>
>So far so good.
>I ran the form still no images on the toolbar (coolbar). But at least no 'property unkown' error.
>Then I tried your code, still no luck displaying to images on the toolbar buttons, although I have 4 buttons inserted on my toolbar/coolbar.
>When I go back into the property sheet of the coolbar the Imagelist, hotimagelist.. properties aren't populated anymore.
>Any clue why the toolbar is not pertaining the values for its properties?
>
>Thanks already for your help.

Hi Yves,

I add the buttons in the form's .Init as well. First I dimension and fill an array with the unique index names (which in this case are also the toolbar's tip text. In the sample below, I add the buttons and tip text:
lnlast = ALEN(a_buttons, 1)
FOR lni = 1 TO lnlast
 obutton = ThisForm.Coolbar.Buttons.Add(, a_buttons[lni],,,lni)
 obutton.ToolTipText = a_buttons[lni]
NEXT
hth,
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform