How would I change the check mark color in the UltraTree checkbox? I have C# code that keeps track of whether a node should be in the indeterminate state but I don't know how to make the indeterminate state show up as a red check mark.
I am using NetAdvantage for Windows Forms version 11.1.
I see that this can be done using the AppStylist with custom images. Is there any other way to implement this?
Hello,
Could you please review the sample attached to this post and see if it meets your requirements.
Please feel free to let me know if I misunderstood you or if you have any other questions.
I tried the attached sample and it ended up making the entire checkbox a small red square which looks like the box.bmp file. I couldn't check it or do anything. I did have to copy the code into my VS2008 project, so I don't know if that made any difference.
You are right - there is no difference in appearance when clicking in the red square. This is because in my code the image for every state of the checkbox is the same. You could see that the 'BeforeCheck' event for example is firing when you are clicking in the checkbox. The following are what the constructor wants as arguments:
Size glyphSize, Image disabledUnchecked, Image disabledChecked, Image disabledIndeterminate, Image normalUnchecked, Image normalChecked, Image normal Indeterminate, Image mouseOverUnchecked
CheckBoxImageGlyphInfo(System.Drawing.Size glyphSize, System.Drawing.Image disabledUnchecked, System.Drawing.Image disabledChecked, System.Drawing.Image disabledIndeterminate, System.Drawing.Image normalUnchecked, System.Drawing.Image normalChecked, System.Drawing.Image normalIndeterminate, System.Drawing.Image mouseOverUnchecked, System.Drawing.Image mouseOverChecked, System.Drawing.Image mouseOverIndeterminate, System.Drawing.Image mouseDownUnchecked, System.Drawing.Image mouseDownChecked, System.Drawing.Image mouseDownIndeterminate, System.Drawing.Image mouseDownAndOverUnchecked, System.Drawing.Image mouseDownAndOverChecked, System.Drawing.Image mouseDownAndOverIndeterminate)
CheckBoxImageGlyphInfo(System.Drawing.Size glyphSize, System.Drawing.Image
disabledUnchecked, System.Drawing.Image disabledChecked, System.Drawing.Image
disabledIndeterminate, System.Drawing.Image normalUnchecked,
System.Drawing.Image normalChecked, System.Drawing.Image normalIndeterminate,
System.Drawing.Image mouseOverUnchecked, System.Drawing.Image
mouseOverChecked, System.Drawing.Image mouseOverIndeterminate,
System.Drawing.Image mouseDownUnchecked, System.Drawing.Image
mouseDownChecked, System.Drawing.Image mouseDownIndeterminate,
System.Drawing.Image mouseDownAndOverUnchecked, System.Drawing.Image
mouseDownAndOverChecked, System.Drawing.Image
mouseDownAndOverIndeterminate)
Please do not hesitate to contact us if you need any additional assistance.
I just wanted to know if you were able to solve your issue based on these suggestions or you still need help?
Please let me know.