Indenting ToolStripMenuItem

  • Thread starter Thread starter Jeff Gaines
  • Start date Start date
J

Jeff Gaines

Is there an easy (i.e. built in) way to indent ToolStripMenuItems or do I
have to go the owner draw route?
 
Prefixing with spaces is too primitive?

Arne

Hello Arne.

I did try that but it only indents the text, not the image. I really want
indentation like a TreeView. Perhaps I need to make a drop-down TreeView.
 
I did try that but it only indents the text, not the image. I really
want indentation like a TreeView. Perhaps I need to make a drop-down
TreeView.

I have never tried images in a menu.

You can't make special images that gives an impression
of indentation?

Most likely you will need to write some code to achieve the
special effect you want.

Arne
 
Is there an easy (i.e. built in) way to indent ToolStripMenuItems or do I
have to go the owner draw route?

Why do you want to? At face value it sounds like you're using the wrong
control for the job.
 
Why do you want to? At face value it sounds like you're using the wrong
control for the job.

It's the history dropdown of a file manager so I want the computer
indented under desktop, drives indented under computer, directories under
drives etc.

I'm sure Explorer used to do something similar but it doesn't seem to
under Win7.
 
It's the history dropdown of a file manager so I want the computer
indented under desktop, drives indented under computer, directories under
drives etc.

I'm sure Explorer used to do something similar but it doesn't seem to
under Win7.

I believe what you're thinking of is the Address dropdown, which was still
there in XP, and yes, it does what you're talking about, but I'm 95%
positive it's a tree view (the other 5% possibility being a list view). It
is most definitely not a menu.
 
I believe what you're thinking of is the Address dropdown, which was still
there in XP, and yes, it does what you're talking about, but I'm 95%
positive it's a tree view (the other 5% possibility being a list view). It
is most definitely not a menu.

Thanks Jeff :-)

I've added a drop down TreeView to my collection of Pickers, seems to work
well so far...
 
Back
Top