Indenting ToolStripMenuItem

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?
 
A

Arne Vajhøj

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
 
J

Jeff Gaines

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.
 
A

Arne Vajhøj

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
 
J

Jeff Johnson

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.
 
J

Jeff Gaines

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.
 
J

Jeff Johnson

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.
 
J

Jeff Gaines

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top