Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OForm.Show does not activate the form
Message
De
17/06/2004 09:38:00
 
 
À
17/06/2004 07:24:23
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00914571
Message ID:
00914608
Vues:
13
Erick,

I don't want the form to be modal, so that's out, however you had me take another look at the documentation:


"Remarks:
The Show method sets a form or form set's Visible property to true (.T.) and makes the form the active object. If a form's Visible property is already set to true (.T.), the Show method makes it the active object.

If a form set is activated, the last active form in the form set also becomes active. If no form is active, the form that was added to the FormSet class definition first is made active.

Forms contained within a form set retain their Visible property setting. If a form's Visible property is set to false (.F.), the Show method for the form set does not show the form."

As we all know <g> or should know, with CreateObject(..) an objects Visible property is .F. and the documentation might be faulty.

Anyway, setting Visible = .T. before Show seems to solve the problem.

Thank's for your help.

Peter







>Hi Peter!
>Try this:
>
>oMainMenuForm = CREATEOBJECT('MainForm')
>oMainMenuForm.WindowState = 2	&& Form maximized
>oMainMenuForm.SHOW(1)	&& Modal style
>
>I hope this help you.
>Bye!
>
>>Well it's all in the title -
>>oMainMenuForm = CREATEOBJECT('MainForm')
>>oMainMenuForm.SHOW
>>And it does show it, but you have to click on the thing to let it have the focus or activate it.
>>On some machines it also minimizes the form?
>>Any way around it? Please let me know.
>>TIA
>
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform