Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox Focus
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01350476
Message ID:
01350553
Views:
23
>>>>I want to present a listbox and have the focus(highlighted) on a certain record. However I want that record to appear in the middle of the listbox. For some reason it appears at the bottom of the visible listbox by default.
>>>
>>>Where in the form you're setting ListBox.Selected[i] = .t. ?
>>
>>In the init event. Simply put, I want the highlight to occur in the middle of the listbox.
>
>I don't remember details, but there were some quirks with listboxes my former colleague Mike Asherman found. Perhaps you can not do this in Init. Try form's Activate for now, I may try to look at home at our classes for this.

I can set a record to be highlighted no problem, it's just that I want it to be center of the listbox.
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform