Le 07/08/2014 00:43, DaveOxford1 a écrit :
> Hi All
>
> When right-clicking on a GridView, .Row and .Column are not set to the
> values for the new cell in the Menu event (as they in the Click event for a
> left-click).
>
> Is this a bug or the intended behaviour?
>
> If it /is/ the intended behavi
Many thanks, Shane!
I didn't know about RowAt & ColumnAt - very useful.
Dave
--
View this message in context:
http://gambas.8142.n7.nabble.com/GridView-not-setting-Row-Column-on-right-click-Menu-event-tp47692p47698.html
Sent from the gambas-user mailing list archive at Nabble.com.
-
hi Dave i came across this an hour ago myself what i did was
Public mX As Integer
Public mY As Integer
Public Sub GridView1_MouseMove()
mX = Mouse.X
mY= Mouse.Y
End
then you can use
Public Sub GridView1_Menu()
Row = GridView1.RowAt(mY)
Col = GridView1.ColumnAt(mX)
End
hope th
Hi All
When right-clicking on a GridView, .Row and .Column are not set to the
values for the new cell in the Menu event (as they in the Click event for a
left-click).
Is this a bug or the intended behaviour?
If it /is/ the intended behaviour, how can I ascertain the Row and Column
values?
Hope