"Lars Wilhelmsen" <la*****@NOSPAM.ifi.uio.no> wrote in message
news:us**************@TK2MSFTNGP10.phx.gbl...
Hi "M" (please specify a real name when posting news),
"M" <ne**@news.com> wrote in message
news:eY**************@TK2MSFTNGP10.phx.gbl...
Is there a way to have the sub menus attached to Circles and Triangles
without manually adding each one in the code? Yes that would be merging
right? ok now how can I determine who called Large Yellow or Small Red,
do
I have to do something like sender->parent->parent->text ?
Yes, I believe you have to check the sender-parameter in the event
handler, and trace back as needed.
(Of course you have to wire up the Circles and Triangles MenuItems with
the same sub menus).
Have you thought about redesigning your application, so that there is a
more intuitive way
of selecting your shapes? (e.g. a palette control).
Regards,
Lars Wilhelmsen
Software Engineer
Teleplan A/S, Norway
Thanks for replying.
Its actually not shapes at all but I was just using them as an example. It's
more like a tree control filled with various sets of data and on each set of
data I need to run different statistics. The statistics need to be able to
to be run over the last 5, 10, 15 etc test runs. So it will look like
the tree
Dataset1
|_______statistic1
|_______Last 5 test runs
|_______Last 10 test runs
|_______Last 15 test runs
|_______All test runs in August
|_______All test runs in July
|_______statistic2
|_______Last 5 test runs
|_______Last 10 test runs
|_______Last 15 test runs
|_______All test runs in August
|_______All test runs in July
Dataset2
|_______statistic1
|_______Last 5 test runs
|_______Last 10 test runs
|_______Last 15 test runs
|_______All test runs in August
|_______All test runs in July
Dataset3
|_______statistic1
|_______Last 5 test runs
|_______Last 10 test runs
|_______Last 15 test runs
|_______All test runs in August
|_______All test runs in July
Not exactly like this but something similiar. But you see I need to be able
to determine which Dataset and which statistic triggered the call. It looks
like I might have to do the parent->parent.text thing.
Thanks