|
-
Apr 4th, 2008, 01:46 AM
#1
Thread Starter
Frenzied Member
[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
Last edited by Icyculyr; Apr 5th, 2008 at 02:02 AM.
-
Apr 4th, 2008, 02:03 AM
#2
Re: [2008] ToolStripItem Image Margin?
The ToolStripItem class has an Image property. Is that what you're asking about?
-
Apr 4th, 2008, 03:26 AM
#3
Thread Starter
Frenzied Member
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
-
Apr 4th, 2008, 07:37 AM
#4
Re: [2008] ToolStripItem Image Margin?
 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.
-
Apr 5th, 2008, 02:01 AM
#5
Thread Starter
Frenzied Member
Re: [2008] ToolStripItem Image Margin?
hmm, ok, cheers
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|