>>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