PC Review


Reply
Thread Tools Rate Thread

Child menus, how would I do this

 
 
M
Guest
Posts: n/a
 
      10th Jul 2004

Hopefully this will come out right but this is what I'd like

Shapes
=======
Squares
|___by color
|___Red
|___Yellow
|___by size
|__Large
|__Medium
|__Small
Circles
Triangles



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 ?

Thanks



 
Reply With Quote
 
 
 
 
Peter van der Goes
Guest
Posts: n/a
 
      10th Jul 2004

"M" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Hopefully this will come out right but this is what I'd like
>
> Shapes
> =======
> Squares
> |___by color
> |___Red
> |___Yellow
> |___by size
> |__Large
> |__Medium
> |__Small
> Circles
> Triangles
>
>
>
> 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 ?
>
> Thanks
>
>
>

Question. Are you working in Visual Studio .NET? If not, what tool(s) are
you using?
Observation: If you pursue the menu strategy you've illustrated, you're
going to create a lot of redundancy. Why not have menu selections (at the
top) for Shapes, Colors and Sizes? That way the color and size settings are
presented only once and can be selected for any shape.

--
Peter [MVP Visual Developer]
Jack of all trades, master of none.


 
Reply With Quote
 
M
Guest
Posts: n/a
 
      10th Jul 2004

"Peter van der Goes" <(E-Mail Removed)> wrote in message
news:u$(E-Mail Removed)...
>
> "M" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >
> > Hopefully this will come out right but this is what I'd like
> >
> > Shapes
> > =======
> > Squares
> > |___by color
> > |___Red
> > |___Yellow
> > |___by size
> > |__Large
> > |__Medium
> > |__Small
> > Circles
> > Triangles
> >
> >
> >
> > 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 ?
> >
> > Thanks
> >
> >
> >

> Question. Are you working in Visual Studio .NET? If not, what tool(s) are
> you using?
> Observation: If you pursue the menu strategy you've illustrated, you're
> going to create a lot of redundancy. Why not have menu selections (at the
> top) for Shapes, Colors and Sizes? That way the color and size settings

are
> presented only once and can be selected for any shape.
>
> --
> Peter [MVP Visual Developer]
> Jack of all trades, master of none.
>
>


Thanks for replying.

I am working in VS .NET, an older version using 1.0 framework.

Redundancy is what I'm trying to avoid. Meaning I don't want to have to
create separate menuitems (and handlers) for CircleRedLarge_OnClick,
CircleRedSmall_OnClick, etc. I was hoping to have one function to handle
everything and point all the eventhandlers to it. That function would then
be able to determine who called it and act accordingly.

> Why not have menu selections (at the
> top) for Shapes, Colors and Sizes? That way the color and size settings

are
> presented only once and can be selected for any shape.


Do you mean like a check box menu where the user selects a shape then moves
to the colors menu and selects a color and then moves to the size menu.?

I suppose I could do that but this is a context menu and I would it to be
accessible by right clicking anywhere in the screen

Thanks again




 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
child menus orientation thersitz Microsoft ASP .NET 1 27th Jan 2007 05:31 AM
Child Windows cannot have menus error Keith G Hicks Microsoft Windows 2000 0 7th Jun 2005 03:12 PM
Remove menus in a maximized mdi child form Ryan Taylor Microsoft Dot NET Framework Forms 1 3rd Jun 2005 01:22 AM
MDI Child forms and menus...best practice? Bob Rundle Microsoft Dot NET Framework Forms 6 23rd Aug 2004 06:16 PM
Child Menus, what would the best way to do this M Microsoft Dot NET Framework Forms 0 9th Jul 2004 09:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:54 PM.