Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug : Label have GotFocus and LostFocus
Message
From
19/05/2004 07:33:37
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Bug : Label have GotFocus and LostFocus
Miscellaneous
Thread ID:
00905205
Message ID:
00905205
Views:
51
A Label baseclass have not GotFocus and LostFocus events.

But if you run this repro,
you can see that AMEMBERS return these two events,
and you can define a useless BINDEVENT() for these events.
CLEAR
lb1=CREATEOBJECT("Label")
FOR K=1 TO AMEMBERS(aPEM,"label",1,"N#")
	IF INLIST(aPEM[M.K,1],"GOTFOCUS","LOSTFOCUS")
		? aPEM[M.K,1],aPEM[M.K,2],aPEM[M.K,3]
		=BINDEVENT(m.lb1,aPEM[M.K,1],_SCREEN,"click")
	ENDIF
NEXT
RELEASE lb1,K
p.s. GotFocus and LostFocus are not BINDABLE System events.

Fabio
Reply
Map
View

Click here to load this message in the networking platform