[2008] ToolStripItem Image Margin?
Hey, I'm writing a custom class (1200 lines so far) for coloring toolstrips and they're buttons, it also works for context menu's, what I am wondering is where is the option on a toolstrip item to show an image, IE...
There's the check margin, which has a tick in it, when you set Checked = true, but I've seen ImageMargin, and an option to show that (AND, add an image to it) can anyone tell me if I'm making things up in my mind?
Because I can't find it
Cheers
Re: [2008] ToolStripItem Image Margin?
The ToolStripItem class has an Image property. Is that what you're asking about?
Re: [2008] ToolStripItem Image Margin?
Erm no, you know how there's a 'Check Margin'
Which if you set a toolstrip item's checked state to true, it shows a 'Tick', (assuming Show Check Margin is set to true), now I have seen (somewhere, maybe even another control), an Image Margin option, which shows an image, it might be on a menustrip,
It's not an image, it's like a mini icon that goes near the name (on the left, like the check margin)
Any idea?
Cheers
Re: [2008] ToolStripItem Image Margin?
Quote:
Originally Posted by Icyculyr
Erm no, you know how there's a 'Check Margin'
Which if you set a toolstrip item's checked state to true, it shows a 'Tick', (assuming Show Check Margin is set to true), now I have seen (somewhere, maybe even another control), an Image Margin option, which shows an image, it might be on a menustrip,
It's not an image, it's like a mini icon that goes near the name (on the left, like the check margin)
Any idea?
Cheers
Yeah, it's the Image property. You assign an Image object to the image property and it gets displayed in the image margin. That's why it's called an image margin: because that's where the Image is displayed.
Re: [2008] ToolStripItem Image Margin?