Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
My own StatusBar!
Message
From
15/07/1999 17:58:53
 
 
To
15/07/1999 11:01:02
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00241771
Message ID:
00242035
Views:
21
>I need to have my own StutusBar for my application and after som research I have figured out that's not so easy. Is it even possible to take control over the main VFP6 window and add my own StatusBar?
>
>I've tried the following:
>
>_screen.addproperty('oStatusBar')
>_screen.oStatusBar = CreateObject('MSCOMCTLLIB.SBARCTRL')
>_screen.oStatusBar.Panels.Add
>_screen.ostatusbar.panels.item(1).text = 'Some text...'
>
>This code works fine, but where is the StatusBar? I can't see it anywhere...
>
>_screen.addobject('StatusBar', 'MSCOMCTLLIB.SBARCTRL')
>
>Gives the following error message:
>Object class is invalid for this container.
>
>So what can I do?
>
>Do I have to create a top-level form and add a status bar to that and then run my application inside this new form? In that case is there anyway to to my main VFP window invisible (infact i newer even want it to open). If I have to use this alternative can my new top-level form completly replace the main VFP window without any loss of functionality?
>

I know that telling you this whizzed right by this morning, but that's exactly what I told you in your previous message.

As to starting with the main VFP screen not visible (in fact, hidden, even from the taskbar), that hasn't changed from this morning either. In CONFIG.FPW, either in the starting directory, specified witht he -c command line switch or compiled into your app included under Other Files/Text Files, with a line that reads:

SCREEN = OFF
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform