Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox
Message
From
09/07/2001 08:02:26
 
 
To
06/07/2001 07:56:55
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00527326
Message ID:
00528039
Views:
19
Hi!

It looks like the setting focus in teh InteractiveChange of combobox does cancel the selecting. Use Valid event of the combobox that is more reliable - it is also fired for each selection, not only when focus goes out of combobox.

PS: Instead of setting focus to grid (.grdPreset.SETFOCUS), refresh it just by calling Refresh method of grid (.grdPreset.REFRESH)

HTH.

>Hi,
>
>
>Combobox.INTERACTIVECHANGE()
>
>WITH THIS
>	THISFORM.RequeryLookup(.VALUE)
>ENDWITH
>
>THISFORM.RequeryLookup
>
>SELECT tblPreset
>
>WITH THIS
>	.LOCKSCREEN = .T.
>	.grdPreset.RECORDSOURCE = ""
>	
>	SELECT cDesc ;
>	FROM tblPreset ;
>	WHERE UPPER(Group) = UPPER(tcGroup) ;
>	INTO CURSOR csrPreset
>	
>	.grdPreset.RECORDSOURCE = "csrPreset"
>		
>	.GRIDHIGHLIGHTER1.INIT()
>	.grdPreset.SETFOCUS
>	WITH .txtDesc
>		.VALUE = ""
>		.SETFOCUS
>	ENDWITH		
>ENDWITH
>
>
>
>Any ideas?
>
>Thank you
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform