Re: [Gambas-user] GridView not setting Row & Column on right-click Menu event

2014-08-27 Thread Benoît Minisini
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

Re: [Gambas-user] GridView not setting Row & Column on right-click Menu event

2014-08-07 Thread DaveOxford1
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. -

Re: [Gambas-user] GridView not setting Row & Column on right-click Menu event

2014-08-07 Thread Shane
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

[Gambas-user] GridView not setting Row & Column on right-click Menu event

2014-08-06 Thread DaveOxford1
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