View.pick_helper dosen't work?
-
When I try to use
view.pick_helper
in anonLButtonUp
event it doesn't return any elements. It does return a PickHelper though which I can use to do a.do_pick(x,y)
- but that doesn't allow me to set the radius.def onLButtonUp(flags, x, y, view) ph = view.pick_helper(x, y, 20) puts ph.count # > 0 end
Why doesn't it pick anything?
-
I noticed that once too, but found a work-around. I don't know if it is bad documentation or a missing feature.
the test_point method allows an aperture (never tried it.) Also, maybe try passing an aperture to do_pick - I have never tried that either, but sometimes you find undocumented features.
Otherwise, I find pick_helper methods confusing and get them working through trial-and-error.
-
I'll poke about some.
I guess this is one for the Typos and Questions thread - as well as the bug section. (Or has it been reported already?)
Advertisement