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

Shane shanep1967 at ...169...
Thu Aug 7 12:00:17 CEST 2014


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 this helps
Shane.

On 07/08/14 08:43, DaveOxford1 wrote:
> 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 someone can help!
>
> Dave
> Gambas 3.5.3, qt4, on crunchbang waldorf.
>
>
>
> --
> View this message in context: http://gambas.8142.n7.nabble.com/GridView-not-setting-Row-Column-on-right-click-Menu-event-tp47692.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Infragistics Professional
> Build stunning WinForms apps today!
> Reboot your WinForms applications with our WinForms controls.
> Build a bridge from your legacy apps to the future.
> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>





More information about the User mailing list