I have a panel with a lot of different shapes. I would like to select some
of them using the mouse. (Click the left button on the mouse and move it to
another spot, while a rectangle is created between them as the mouse moves.
When the button is up all the shapes inside are selected)
Are there any wx methods for this?
Any examples of something similar?
Any ideas how to do it? (A smart way of finding out which shapes are inside
the marked area...)
----- Original Message -----
From: "Thomas Aanensen" <thoaan@online.no>
To: <wxPython-users@lists.wxwindows.org>
Sent: Thursday, August 21, 2003 12:13 PM
Subject: [wxPython-users] Selection of several shapes
Hi
I have a panel with a lot of different shapes. I would like to select some
of them using the mouse. (Click the left button on the mouse and move it
to
another spot, while a rectangle is created between them as the mouse
moves.
When the button is up all the shapes inside are selected)
Are there any wx methods for this?
Any examples of something similar?
Any ideas how to do it? (A smart way of finding out which shapes are
inside
the marked area...)
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org
Seems like none of the classes have methods for selecting the items/shapes
inside the rect. Any ideas how to do this?
I don't hink you've said so explicitly, but it sounds like you are using
wxOGL. If so I can't help you, but if you are using your own "canvas",
based on DCs, you'll need to figure out what objects are inside the
RBbox yourself. That I could help you with.
By the way , if it seems like wxOGL is not meeting your needs, let us
know what your needs are, and we might be able to suggest some
alternatives.
-Chris
···
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception