Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drag and drop to re-position grid or listbox columns
Message
De
24/03/2005 14:37:51
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Drag and drop to re-position grid or listbox columns
Divers
Thread ID:
00998960
Message ID:
00998960
Vues:
69
Has anyone tried building a grid or listbox that allows a user to reposition columns via a "drag and drop" interface?

I'm considering adding this feature to an application and am looking for any ideas on design or implementation. One particular nuance: Many of my grids don't show column headers so ideally I'm looking for a grid solution that works with both visible and non-visible headers.

Here's my rough draft idea for implementing this functionality: Place a transparent shape above each column of the control in question. These transparent column shapes would pass most mouse events down to the underlying control except for drag and drop events which they would handle as a mechanism for repositioning columns. One of the advantages of using column shapes is that I could turn on its borders during a repositioning to show what column was being moved? (BTW: Credit for concept of transparent shape technique goes to Cetin Basoz - Thanks Cetin!)

Any thoughts on this design and/or what type of drag and drop mechanism to use (VFP classic drag and drop, OLE drag and drop, or my own simple "drag and drop" managed via a mouse down event.

Malcolm
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform