Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Force Listbox to Highlight a row
Message
De
07/10/2003 08:33:18
 
 
À
06/10/2003 17:46:08
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00835546
Message ID:
00835712
Vues:
18
You may be better off setting this value upon first focus.
Form::Gotfocus
if not pemstatus(this,'lShown',5)
  this.addproperty('lshown',.t.)
  if this.mylistbox.listcount > 0
    this.mylistbox.listindex = 1
  endif
endif
Glenn



>I tried that but get an error. I looked at the property in design and the property is disabled and italicized. The listbox is not part of a class. Any ideas?
>
>>In the Init of the listbox put This.ListIndex = 1 && Highlight first row
>>
>>
>>>VFP6 - For some reason I have a listbox that refuses to highlight a row when the form is first initialized. What is the accepted way to do this? The source is an Alias and I'm already making sure I'm on the first record and doing a Refresh of the listbox. Thanks!
>>>
>>>Regards, Renoir
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform