FlexGrid mouse-click on fixed... or non-fixed columns? 
Author Message
 FlexGrid mouse-click on fixed... or non-fixed columns?

I have a VB6 FlexGrid.

What's the correct way to detect whether a user has clicked on the first column (a fixed column)...
or on the
the 2nd column (a non-fixed column)?

Seems like my CLICK or MOUSEDOWN events containing Grid1.Col report the same... for either
occurrence.

How do I distinguish between them?

Thanks.



Thu, 21 Aug 2003 10:19:04 GMT  
 FlexGrid mouse-click on fixed... or non-fixed columns?
Try the Flexgrid's MouseCol property. This gives the column that the mouse
is over.

Sub MSFGrid_Click()
Debug.print "You Clicked Column " & MSFGrid.MouseCol
End Sub



Quote:

> I have a VB6 FlexGrid.

> What's the correct way to detect whether a user has clicked on the first

column (a fixed column)...
Quote:
> or on the
> the 2nd column (a non-fixed column)?

> Seems like my CLICK or MOUSEDOWN events containing Grid1.Col report the
same... for either
> occurrence.

> How do I distinguish between them?

> Thanks.



Thu, 21 Aug 2003 20:59:03 GMT  
 FlexGrid mouse-click on fixed... or non-fixed columns?
With Me.mshgrdParts
    If .MouseRow = 0 Then Statement           'Clicked in the column heading
Quote:
-----Original Message-----

I have a VB6 FlexGrid.

What's the correct way to detect whether a user has clicked on the first column
(a fixed column)...
or on the
the 2nd column (a non-fixed column)?

Seems like my CLICK or MOUSEDOWN events containing Grid1.Col report the same...
for either
occurrence.

How do I distinguish between them?

Thanks.

.



Fri, 22 Aug 2003 05:29:11 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Unable to Highlight Flexgrid Fixed Column/Cell

2. How to sort a column in flexgrid when user click a column heading on the fixed row?

3. Fixed String and Fixed Array

4. OK -- fixed the big problem -- how to fix little one

5. *** FIX *** Cannot find KeycodeV2.dll, or invalid *** FIX ***

6. getting fixed length string with non ascci character (including \0)

7. Remove last non fixed row of grid control

8. How can I remove last non-fixed row?

9. Clicking on a fix hyperlink

10. VB4/RTBox/mouse events - are these fixed in VB5

11. Detect a click in MsFlexgrid Fixed col, row?

12. Insert Variable Number of Spaces into line to Create Fixed column file

 

 
Powered by phpBB® Forum Software