Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How Change Desktop Property for New class Instance?
Message
 
 
To
19/08/2003 03:51:28
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00821291
Message ID:
00821360
Views:
25
Hi Roman,

You cannot change DeskTop property at runtime because it's read-only. You can subclass your form and use appropriate one at runtime.
PUBLIC frm
IF (6=MESSAGEB('Desktop?',4))
	frm = CREATEOBJECT('frmDT')
ELSE
	frm = CREATEOBJECT('frm')
ENDIF	
frm.SHOW()
RETURN

DEFINE CLASS frm AS FORM
	DESKTOP=.F.
ENDDEFINE

DEFINE CLASS frmDT AS frm
	DESKTOP=.T.
ENDDEFINE
>How Change Desktop Property for New class Instance?
>In this code messagebox executes only once.Why?
>
>publ frm,frm1
>frm=CREATEO('frm')
>frm.show()
>frm1=CREATEO('frm')
>frm1.show()
>define class frm as form
>  desktop=(6=MESSAGEB('Desktop?',4))
>  visible=.T.
>endefine
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform