Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating VFP 5.0 forms with no title bar
Message
 
To
30/07/1997 12:01:46
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00042338
Message ID:
00042393
Views:
45
>>>>Is there any way, in VFP 5.0, to create a form with no title bar? I'm trying to make a "splash" screen that will display while my program initializes since this takes some time. I'd like to get rid of the title bar on the window.
>
>>Hey, GREAT idea! I can't do it that way though, because we hide that VFP main window immediately, so _SCREEN isn't visible. I didn't know, though, that you could add objects it. I'll keep that in mind. :)
>
>Glad it stimulated some ideas. Actually, I may have an answer for you. Nick Neklioudov's trick was also great... since you're hiding the main FoxPro window (how are you doing that??), you can open the form on the desktop by setting .ShowWindow = 2 . This will open the form as a top-level form on the desktop! So NN's code becomes:
>
>Set the Caption property to ""
>Set the ControlBox property to .F.
>Set the MaxButton property to .F.
>Set the MinButton property to .F.
>Set the Movable property to .F.
>Set the ShowWindow property to 2
>
>That should do it!

To make the VFP main window not visible:
1) Set application.visible to .F. in the main prg.
2) On the main form, set Desktop to .T. and ShowWindow to 2 - As Top-Level Form
3) On subsequent forms, set Desktop to .T. and ShowWindow to 1 - In Top-Level Form.

We have all this set up already in our base-class forms, so I never have to actualy do it. I *THINK* this is correct, let me know if it doesn't work and I'll double-check. :)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform