Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updated ctl32_statusbar class in Downloads
Message
De
27/04/2006 16:43:12
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01116978
Message ID:
01117301
Vues:
21
This message has been marked as the solution to the initial question of the thread.
>>You want to add the Icon to the status bar? Lets say you want it in the leftmost panel, the PanelMessage, you could do:
>>
>>_Screen.myStatusBarName.Icon = "myIconFile.ico"
>>
>>or
>>
>>_Screen.myStatusBarName.PanelMessage.Icon = "myIconFile.ico"
>>
>>"myIconFile.ico" must be in a folder in the path, or include the full path.
>>
>>Add the icon files to your project.
>>

>The SET('path') in debug mode is different than in exe mode. I have the icons in the path in debug mode and I would add them to the project. Is it enough and we don't need to put actual icon files to each user computer?
>

You dont have to copy the actual ico files to the users computers, just include them in your project. The class uses the LOADPICTURE( ) native VFP Function to obtain an object reference and a handle to the icon, and passes that reference to the actual windows statusbar control:
This.oIcon = LoadPicture(This.Icon)
SendMessageN(This.Parent.HWnd, SB_SETICON, This.Index - 1, This.oIcon.handle)
So just having the ico files in your project is ok, since LoadPicture will find them there.

Carlos
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform