I am still trying to work myself through a simple project utilizing a menu system to invoke several screens which will access a two free tables. The object is trying to learn OOP VFP.
----code snip---------------
In the Main.prg program:
SET CLASSLIB TO myclasslib
DO menu.mpr
READ EVENTS
In the Menu, in a menu option procedure:
ofrm = CREATEOBJECT(‘c_form’)
ofrm.SHOW(0)
--------------
'c_form' is a subclass of parent 'tform' based on the standard form class, both 'c_form' and 'tform' are stored in myclasslib.
If I create the MODELESS form, it just flashes when the menu option is selected. If I change to: ofrm.SHOW(1)for MODAL operation, then the screen displays OK.
I tried a normal (non-classed) form and called it from the same menu procedure as: DO FORM myform, the form will appear and stay on the screen regardless of whether is set the SHOW property to 0 or 1, only difference is I can’t access other menu items with MODAL, which is my basic problem for wanting to use MODELESS for the object based form: c_form.
How can I make the MODELESS screen work when created from a sub-classed object. I am missing something here, but sure don’t see it.
John
----code snip---------------
In the Main.prg program:
SET CLASSLIB TO myclasslib
DO menu.mpr
READ EVENTS
In the Menu, in a menu option procedure:
ofrm = CREATEOBJECT(‘c_form’)
ofrm.SHOW(0)
--------------
'c_form' is a subclass of parent 'tform' based on the standard form class, both 'c_form' and 'tform' are stored in myclasslib.
If I create the MODELESS form, it just flashes when the menu option is selected. If I change to: ofrm.SHOW(1)for MODAL operation, then the screen displays OK.
I tried a normal (non-classed) form and called it from the same menu procedure as: DO FORM myform, the form will appear and stay on the screen regardless of whether is set the SHOW property to 0 or 1, only difference is I can’t access other menu items with MODAL, which is my basic problem for wanting to use MODELESS for the object based form: c_form.
How can I make the MODELESS screen work when created from a sub-classed object. I am missing something here, but sure don’t see it.
John