Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ReSize Column width also clicks Grid header
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00161670
Message ID:
00161859
Views:
21
Russell,

I settled on these two methods:
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
Then in Click() you can test if it was moved or sized.

>I am using the click event on a grid column header to index it on its rowsource. However resizing the column also tends to click the grid header and activate the indexing routine.
>How can I stop this?
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