MohoView:PickShape(where, noHigherThan, pickWidth)

Version added: before 9.5

Picks a shape near the given pixel location

ArgumentTypeDescriptionDefaultVersion added
whereLM_PointPixel location on the screenbefore 9.5
noHigherThanint32Id of the highest shape to pick (to allow picking lower, hidden shapes), -1 to ignore this option-1before 9.5
pickWidthint323before 9.5

Return type (int32): id of an M_Shape in the current vector layer

Picks a shape near the given pixel location.