Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
My form does not repaint background when moving...
Message
De
06/03/2007 12:05:35
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
My form does not repaint background when moving...
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01201094
Message ID:
01201094
Vues:
67
My VCX library contains a class form named MyForm created on base class 'form'. And my COM-EXE looks like the following...

DEFINE CLASS MyClass as session OLEPUBLIC
>>FUNCTION DisplayMyForm() as VOID
>>>>SET CLASSLIB TO "MyClassLib"
>>>>oFrm = CREATEOBJECT("MyForm")
>>>>oFrm.show(1)
>>>>READ EVENTS
>>ENDFUNC
ENDDEFINE

oFrm = CREATEOBJECT("MyCOMEXE.MyClass")
oFrm.DisplayMyForm()

When the form is show, the problem is the background is not repaint when I move the form or when I resize the form. But I don't have that problem when I do the following (instantiate directly from VCX without using COM-EXE)...

oFrm = CREATEOBJECT("MyForm")
oFrm.show(1)
READ EVENTS

My question is: Why the COM-EXE cause that problem?
And how can I resolve that?
Marc Levesque
La Prairie, Quebec (CANADA)
marc.levesque@videotron.ca
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform