Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Column Header Click
Message
 
 
To
30/03/2005 13:29:45
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01000019
Message ID:
01000170
Views:
18
This message has been marked as a message which has helped to the initial question of the thread.
Sarosh,

My header class uses code like this:
procedure MouseDown
LPARAMETERS nButton, nShift, nXCoord, nYCoord

with this
   * initialize items that will be tested in MouseUp
   .mnColumnOrder = this.parent.ColumnOrder
   .mnColumnWidth = this.parent.Width
endwith
endproc

procedure MouseUp
LPARAMETERS nButton, nShift, nXCoord, nYCoord

with this
   * check to see if this was a resize or move
   .mlColumnMoved = ( this.parent.ColumnOrder != .mnColumnOrder )
   .mlColumnSized = ( this.parent.Width != .mnColumnWidth )
endwith
endproc
>Is there an easy way to figure out if the click event in the (Grid Column) Header happened because the user clicked on the header or because the user moved the Column Position (Changed the ColumnOrder of a Grid's Column)
>
>I am using VFP 9.0
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform