Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OForm.Show does not show form
Message
From
09/07/2004 09:57:48
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
09/07/2004 06:22:55
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00922439
Message ID:
00922475
Views:
12
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
Previous
Reply
Map
View

Click here to load this message in the networking platform