Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menus and Status bars
Message
 
À
23/08/2001 11:35:16
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00547795
Message ID:
00548056
Vues:
10
>Hi Jeremy,
>
>A difficult topic...
>
>I have got i all working, but its a bit of a pain to get it working properly.
>You can capture those messages with _VFP.Statusbar. This only works when a statusbar is active. Since you don't want a graphical on (you choose to use the ActiveX) you must enable the non-graphical one with SET STATUS ON. Now the first problem arives:
>
>1. You don't want to see the statusbar.
>
>You can solve this issue by placing a desktopform over it. This is a form with the alwaysonbottom property set to .T. . Of course this form has no border and no titlebar and is as large as you whole desktop (or larger).
>
>2. How do I get the message to appear in the activeX statusbar ?
>
>the only way i've found is using a timer which frequently (10 times per second) polls the _VFP.Statusbar property and can be set into the ..statusbar.panels(1).text property.
>
>I've placed the activeX statusbar in a container which is placed on a toolbar. The toolbar is set to be docked on the bottom of the screen.
>
>3. Though this works, you can run into all kinds of problems because SET STATUS ON is issued. If a field validation fails, it could lockup your program (e.g.: invalid date. I was not able to solve this issue other than by removing field level validations) Further, it seems that al kind of stuff is displayed on my forms when starting anotherone. You should place a few SET TALK OFF and SET CONSOLE OFF in your form classes.
>
>I've managed to get it all working, but it should be a whole lot easier when VFP:
>
>1. Allows the graphical statusbar to be on screen directly (no need for a toolbar)
>2. The _VFP.statusbar property is also available when no VFP statusbars are active.
>
>Walter,

Thanks Walter for the tips/tricks I'll give it a go. Is there any down side to having a time checking that frequently?
Caroline
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform