Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Objects SHOW prematurely??
Message
 
 
À
25/11/1998 13:09:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00160393
Message ID:
00162414
Vues:
19
Hi Larry,

Yes, if the custom method is called from the init.

Glad you found a workaround
>Not in INIT, but in another custom method. Would that produce the same effect?
>
>Actually, I found a work-around... I had code in INIT to set some properties, etc and it called a couple of custom methods. I moved that code into the SHOW method and left INIT empty. This fixed the problem.
>
>Thanks
>
>>Are you calling SetFocus() anywhere in the init of the form or the init of objects? I find that this makes forms appear before Show() is called. It is as if items need the form to be visible before they can really receive focus.
>>
>>>Why is it that, in the following code, the form is displayed prior to the line with SHOW?
>>>
>>>oOptionClass = CREATEOBJECT("OptionBaseClass")
>>>oOptionClass.SHOW
>>>
>>>I add a WAIT WINDOW 'stop here' between the two lines and the form displays before the wait window...
>>>
>>>There's nothing in the class definition that displays the form, what else could cause this?
>>>
>>>TIA
Rick Hodder
MCP Visual Foxpro
C#, VB.NET Developer
Independent Consultant
www.RickHodder.com
MyBlog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform