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:
01350548
Views:
20
>>>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.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform