Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I make a Form the Active Form?
Message
De
23/05/2006 14:20:59
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01124320
Message ID:
01124347
Vues:
10
>>>>How can I make a form the active form just like choosing its name from the window list in the Window menu?
>>>>
>>>>Since the code that I need to activate a form will be in a method of that form, I can use Thisform if needed. This method is called by a bindevent.
>>>>
>>>>Carlos
>>>
>>>
>>>ACTIVATE WINDOW (form name here)
>>>
>>
>>Thank you Borislav, I already tried that, it doesn't work, the form flashes like its about to become the active form, then the previous active form stays active.
>Waht you trying to do? Just to Activate the form? To invoke some Method of some opemed form or something else?

OK, this is whats happening: I am adding a ScrollBar window control thru API to a form. I do a bindevent to the WM_HSCROLL message that is sent by the scrollbar window to its parent window (the form)

The problem is that if the form is not the active form and you click on the scrollbar, the scrollbar works but the form does not become active. So in the method binded to the WM_HSCROLL message I want to make the form active, that means make it the top form and the one with the keyboard focus.

Now, there it is, clear as mud. :)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform