FYI - I looked thru the books here at work - and there are like 15 or so VFP books or More - but, could not find "1001 Things You Wanted to Know about VFP."
So - I then did as you suggested - and did the Google search - and was pleasantly surprised to see that the Chap. 5 of that book was actually a freely available PDF! Awesome! I'm reading thru the PDF now.
Thanks again, -K-
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Ted Roche Sent: Thursday, January 28, 2016 3:59 PM To: profoxtech@leafe.com Subject: Re: A Question of ListBoxes...
Lists and comboboxes are amazingly critters. Google-search "FoxPro listboxes and comboboxes" and you will find Tamar's *excellent* white paper on the topic and references to HackFox (surprise!) and to Chapter 5 of "1001 Things You Wanted to Know about VFP." If the answer isn't in those three references, it does not exist. I can't emphasize enough (and not because I once received a pittance in royalties!) that if you're developing in FoxPro and you don't have the books that tell you how to do it, you're doing it wrong.
If your users want the list box to sort like a grid, act like a grid, resize like a grid, you're fighting the tide: give them a grid.
Finally, congrats on going fulltime! I hope it works out well for you.
On Thu, Jan 28, 2016 at 3:43 PM, Kurt Wendt Kurt_Wendt@globetax.com wrote:
Hey there Folks,
So - I will admit - I have not worked much with a ListBox in the past. I think what I did work with - and this was like 2 or 3 years ago - was the ComboBox. Also - at my current gig (which they are converting me into a fulltime employee here at the end of March!) - I have almost no chance to work on interface design or changes. Which kinda Sucks - as that's really my favorite part of working in VFP. Instead - it's mostly data processing within the Apps, and working with SQL. As such - I'm glad to finally have an interface mod project that I can finally sink my teeth into.
Anyway - in this particular app there is a screen with a big ListBox. And, for the current project - there are several things I need to look into. The first has to do with the layout and how the user interacts with the ListBox. In 1 or more other screens - there are Grids - and the request is really to make the ListBox act more like the Grids. For instance - they want to be able to Re-Size the widths of columns. Currently, the one ListBox displays 9 columns and up to 11 rows.
They also want to Sort by any of the columns. I suspect if I give them some way to pick which field that they want to sort by - that I can simply issue a Refresh of the ListBox to re-display the data in a new sort order.
So - I'm curious to know if anyone has a suggestion about re-sizing the columns at run-time. I know that programmatically it CAN be done according to the online help - by updating of the ColumnWidths Property. It's just a matter of what control I give to the user to enable this to happen.
By the way - the reason I believe that a ListBox was used is because they want to be able to Select Multiple items at a shot.
That leads me to the other problem. You see - they need to select items from one ListBox - that then gets Moved from that list into another ListBox on the same screen. The problem is - they say that sometimes it moves items that were NOT Selected. Has anyone heard of this particular problem before with the ListBox???
Thanks in Advance, Kurt Wendt Consultant (...soon to be Employee!)
GLOBETAX 90 Broad Street New York, NY 10004-2205, U.S.A. Tel. +1-212-747-9100 Fax. +1-212-747-0029 Email: Kurt_Wendt@GlobeTax.com Web: www.GlobeTax.com
GlobeTax does not provide or offer, and this is not, tax, investment or legal advice. This email and any attachments hereto is intended only for use by the addressee(s) and may contain confidential information. If you are not the intended recipient of this e-mail, please immediately notify the sender at +1-212-747-9100 and permanently delete the original and any copies of this e-mail.
[excessive quoting removed by server]