Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MS Status Bar Control::Picture property?
Message
De
01/02/2005 12:24:40
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
MS Status Bar Control::Picture property?
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00982732
Message ID:
00982732
Vues:
88
I'm adding a standard MS Status Bar to the bottom of a form. I made it 3 panels wide. Left panel for messages, right panel to keep the date (this is an SDI form) and the 2nd (middle) panel I was using to say "Connected/Disconnected" to indicate status of connectivity to LAN/Server or else when laptop users are on their own. All is fine.

Now I tried to change this "Connected"message to a couple of images to indicate state. I added a default image in the SBarCtrl Properties (proprietary) sheet. But I cannot change this at runtime.

When I try code like the following:
ThisForm.oStatus.Panels.Item(2).Picture="<connected image.bmp goes here>"
ThisForm.oStatus.Panels.Item(2).ToolTipText="Connected"
Even though Intellisense, MSDN help and the Object Browser say Picture should be a text property, VFP shows it as an Object. Yet I can't get it to show this supposed object's property. What am I missing? Is there a better/simpler way? Or another Status bar redistributable control maybe?

TIA


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform