Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
jittery screens
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
jittery screens
Divers
Thread ID:
00005696
Message ID:
00005696
Vues:
76
Hi, My app starts with very jittery screens!
I'm just starting with my VFP app. My App's opening screen
has:
a user-defined menu,
a user defined toolbar,
and a logo box in the center of the screen
*-----------------------------------
My desktop:

set sysmenu to
set sysmenu automatic
clear macros
_screen.caption="My Application"
_screen.icon="thatstupidlittleiconyoucantseeforbeans.ico"
_screen.BackColor=rgb(0,64,16)
_screen.WindowState=2 (for some reason, my EXEs don't fire VFP in a
maximized screen)
*-----------------------------------
I start my application like this:

do make-my-toolbar &&a typical object defined from a toolbar class
do make-my-menu && the old 2.6 style define menu stuff
do make-my-logo && a blank form with a BMP in it.
read events

The problem is that the logo form hops up and down until all the
objects are active on the screen (VFP takes a second or 2 to activate the
toolbar)

To resolve the problem, I set the logo form backcolor to the same as the
_SCREEN (rgb 0,64,16). I also temporarily set the logo's borderstyle to 0
and
removed the picture property from the form until the app settles down and
all the objects are active. Then after all is active; the toolbar, the
menu, and the
logo form, I reset the picture and the border style in the logo form
object:

do make-my-logo && a blank form
oLogo.picture="mylogo.bmp"
oLogo.BorderStyle=2
read events

It seems to work...Does anyone have a better way of doing this?

John
John Morga
Sr. Manager Information Systems
Applications Development Group
Systems Engineer
Telephonics Corporation
http://www.telephonics.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform