Michael,
1. Why not encapsulate a listbox in a container. 
2. In the container place a Grid with recordsource either the data in the
listbox or a dummy record but size the headers and set captions according to
your requirements.
3. Now place the listbox into the container but on top of the grid so only
the headers are shown.
4. If required, you now have the added benefit that if you bind the column
Size() event to an event which will reser the column widths in the listbox,
then you have a "resizable column" listbox. Which is cool.

See below for how it looks:

http://www.replacement-software.co.uk/vfp/MB_Demo.png

I thought that was such a good idea that I'm making it into a standard
"resizable listbox" class as we speak as I've also noticed th lack of
Headers is a deficiency on the listbox!

Dave Crozier
 The secret to staying young is to live honestly, eat slowly, and to lie
about your age 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of MB Software Solutions
Sent: 06 September 2006 19:15
To: Profox
Subject: Grid sorting with spinner control

Well, I didn't like the way the Listbox with movers looked with no headers,
so I opted for a grid control instead.  I put a spinner control on the
Priority column, with the intention of instantly adjusting the sort order of
the grid (it's a local view, with a local/temp index on the Priority
column).  When I click the spinner, the values adjust as expected, but the
sort order doesn't change.  I put code into the UpClick and DownClick to set
the order to iPriority for the view and refresh the grid....but it doesn't. 

Here's a screenshot of the grid:
http://mbsoftwaresolutions.com/images/priorities_grid.jpg

Ideas?

Thanks,
--Mike

--
Michael J. Babcock, MCP
MB Software Solutions, LLC
http://mbsoftwaresolutions.com
http://fabmate.com
"Work smarter, not harder, with MBSS custom software solutions!"



[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to