Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListBoxes
Message
 
To
10/01/2017 13:57:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01646478
Message ID:
01646518
Views:
61
>Am I correct that it's not possible to add a horizontal scroll bar to a listbox?
>
>Rich Murillo

You can use a popup and use it as the source of your listbox or combobox

In your form's listbox or combobox you set up the properties
RowSource = _myList
RowSourceType = 9 && Popup
Then in the load of the form
define popup _myList

define bar 1 of _myList prompt 'Selection \<1'
define bar 2 of _myList prompt 'Selection \<2'
define bar 3 of _myList prompt 'Selection \<3'
define bar 4 of _myList prompt '\-'
define bar 5 of _myList prompt 'Selection \<5'
define bar 6 of _myList prompt 'Selection \<6'
define bar 7 of _myList prompt 'Selection \<7'
Finally in the destroy or unload or release of the form you release the popup
release popup _myList
You can set colors, fonts and other stuff in the bars too
"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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform