grid cell selection

Started by potencjalek, May 12, 2017, 03:22:40 AM

Previous topic - Next topic

potencjalek

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?


Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

potencjalek

thank You Fred
works perfect