Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: Dockable=1 activate the form before the load
Message
From
12/09/2005 05:37:08
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
BUG: Dockable=1 activate the form before the load
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01048655
Message ID:
01048655
Views:
57
someform=CREATEOBJECT("someform")
someform.show
READ EVENTS
 
DEFINE CLASS someform as form

	PROCEDURE click
		=CREATEOBJECT("dockable")

	PROCEDURE lostFocus
		? "someform lostfocus"

	PROCEDURE gotFocus
		? "someform gotfocus"
			
	PROCEDURE unload
		CLEAR EVENTS
ENDDEFINE

DEFINE CLASS dockable as form
	dockable = 1
	
	PROCEDURE load
		&& this form is Active still before being built !
		? "Active form is",_screen.ActiveForm.Name, "    expected : Someform"
		&& this change the ActiveForm ! It shouldn't.
		this.dockable = 0
		? "Active form is", _screen.ActiveForm.Name
		RETURN .f.
		* and although the form is not built, someform has a cycle deactivate/activate
	ENDPROC
ENDDEFINE
Reply
Map
View

Click here to load this message in the networking platform