grid cell selection

Started by potencjalek · 2017-05-12 10:22 UTC · 2 replies · SMF topic #2506

Hi guys,
quick question about cell selection in grid object.
Is is possible to set that right mouse click set a cell in same way as left one does?

Hi, yes of course:

  • activate OnMouseDown and check button key

  • if right button was clicked query current postion using HitPointTest

  • if HitPointTest returns acceptable cell, use SetCurCell to select cell



Regards, Fred
thank You Fred
works perfect