Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windowing problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00160886
Message ID:
00161076
Vues:
22
>George,
>
>Thanks for the reply. The app is using Foxtools so if you can find the API info it would be really appreciated!
>
Hi Sally,

Well, I tried SetWindowPos() in 2.6 and it didn't seem to work (at least with the Command window). I do, however, have another idea.

Since you've got foxtools already loaded, try adding this in the Activate event of the form you want on the both:
* Replace "Form On Top" with the caption of
* the form you always want on top
m.whandle = _WFindTitl("Form On Top")
IF m.whandle > 0
  = _WSelect(m.whandle)
ENDIF
Just a bit of a warning, however, you'd better modify the foundation read (or make the forms modal) so that you don't get caught in a loop. The foundation read will fire every time the value of WONTOP() changes. Of course, the second form (unless it's part of what we'd call in VFP a formset) shouldn't have a read clause at all. You'll have to release it from the other form.

If you're interested in further documentation on this and the other functions in Foxtools, download my Extended Foxtools Help file, in the Coding, Syntax & Commands section of the UT files.

hth,
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform