Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Misbehaving dropdown list
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01289375
Message ID:
01289378
Vues:
13
Jim,

It seems to work fine to me, so I probably did not understand the problem, or maybe it is related to your RowSourceType? I tried this (with and without this.setfocus in gotfocus, both seem to work?):
loForm = Createobject('myForm')
loForm.Show(1)

DEFINE CLASS myForm AS form


	Top = 0
	Left = 0
	Height = 273
	Width = 480
	DoCreate = .T.
	BorderStyle = 2
	Caption = "Form"
	Name = "myForm"

	add object text1 as textbox

	ADD OBJECT combo1 AS combobox WITH ;
		RowSourceType = 1, ;
		RowSource = "One,Two,Three,Four", ;
		Height = 24, ;
		Left = 6, ;
		Style = 2, ;
		Top = 239, ;
		Width = 188, ;
		Name = "Combo1"



	PROCEDURE combo1.GotFocus
		THIS.SETFOCUS
		KEYBOARD '{F4}'
	ENDPROC


	PROCEDURE combo1.Init
		this.ListIndex	= 1
	ENDPROC


ENDDEFINE
[Update]By the way, I tested in VFP 8 and 9 SP1, also as style = combo
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform