Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MS Status Bar Control::Picture property?
Message
From
01/02/2005 12:24:40
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
MS Status Bar Control::Picture property?
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00982732
Message ID:
00982732
Views:
85
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
Next
Reply
Map
View

Click here to load this message in the networking platform