Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OForm.Show does not show form
Message
De
09/07/2004 09:57:48
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
09/07/2004 06:22:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00922439
Message ID:
00922475
Vues:
13
Peter,
I'd use :
with eval(oShowForm)
 .Show
...
endwith
Cetin


>All forms are created through oMainMenuForm and are properties of
>oMainmenuForm like this:
>
>oMainmenuForm.DoForm('cForm')
>
>
>LPARAMETERS cForm
>LOCAL oForm
>oForm ='o' + cForm
>
>WITH THIS
>	oShowForm = '.' + oForm
>	TRY
>		&oShowForm..SHOW()   && Fails the first time
>	CATCH
>		.ADDPROPERTY(oForm,NULL)
>		&oShowForm  = CREATEOBJECT(cForm)
>		&oShowForm..ADDPROPERTY('oTreeMenu',This.oTreeMenu)	&& Add this form's ToolBar
>		&oShowForm..SHOW()
>	ENDTRY
>	.AddToStack(&oShowForm)
>	IF .WINDOWSTATE # 1
>		.WINDOWSTATE = 1
>	ENDIF
>ENDWITH
>
>
>The property oTreeMenu gets added and does contain oTreeMenu as an object
>On right clicking the form this code is executed:
>
>
>WITH THIS
>   IF VARTYPE(.oTreeMenu) = 'O' AND NOT ISNULL(.oTreeMenu)
>	TRY
>	   .oTreeMenu.SHOW()
>	CATCH TO oException
>	ENDTRY
>   ENDIF
>ENDWITH
>
>
>This code does execute, .oTreeMenu is an object and not null, visible = .T., but does not show.
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform