Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: a click on _SCREEN area doesn't set ActiveForm
Message
From
11/10/2005 06:09:00
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Title:
BUG: a click on _SCREEN area doesn't set ActiveForm
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01057891
Message ID:
01057891
Views:
49
Repro:
run:
- look the WONTOP and ACTIVEFORM values
- click on the VFP title
- form1 is deactivated and WONTOP and ACTIVEFORM are changed
* issue
* _SCREEN.Activate is not fired
- click on form1
- look
* bug
- click on _SCREEN background area ( _VFP client window )
- form1 is deactivated but WONTOP and ACTIVEFORM aren't changed
WITH NEWOBJECT("form1")
	.Show
ENDWITH

DEFINE CLASS form1 AS form

	ShowWindow = 2 && try with 1 or 0 and Desktop=.F./.T. the situation is still worse
	AUTOCENTER = .t.
	
	ADD OBJECT timer1 AS timer WITH ;
		Top = 38, ;
		Left = 184, ;
		Height = 23, ;
		Width = 23, ;
		Interval = 1000, ;
		Name = "Timer1"


	PROCEDURE Activate
		DEBUGOUT "+++++++++++++++++ ACTIVATE"
	ENDPROC


	PROCEDURE Deactivate
		DEBUGOUT "-------------------- DEACTIVATE"
	ENDPROC


	PROCEDURE Unload
		WAIT CLEAR
	ENDPROC


	PROCEDURE Load
		ACTIVATE WINDOW "DEBUG OUTPUT" 
		ADDPROPERTY(THIS,"LOCKME",THIS)
	ENDPROC


	PROCEDURE timer1.Timer
		DEBUGOUT "WONTOP = ",WONTOP();
                 ,"ACTIVEFORM =";
                 ,IIF(TYPE("_SCREEN.ACTIVEFORM")=="O",_SCREEN.ACTIVEFORM.NAME,"SCREEN")
	ENDPROC

ENDDEFINE
Reply
Map
View

Click here to load this message in the networking platform