Hi
I have a customized grid control that uses a CreationFilter to place a CheckBoxUIElement into the column header of boolean columns. My users want to see the checkbox customized.
I also have a UltraCheckEditor which uses CheckBoxImageGlyphInfo to set the correct look for my application.
I would like to use this customized UltraCheckEditor in the grid header in addition to the already implemented functionality of using it in each boolean cell of the grid.
How does that work?
Mike,
This worked for me. Here is an excerpt of the code I used. And Thanks.
Dim UltraCheckEditor1 As Infragistics.Win.UltraWinEditors.UltraCheckEditor = _ New Infragistics.Win.UltraWinEditors.UltraCheckEditorDim UltraCheckEditorGlyphInfo As Bitmap = _ TryCast(RCISResourceManager.GetResource("UltraCheckEditorGlyphInfo"), Bitmap)
UltraCheckEditor1.GlyphInfo = _ New Infragistics.Win.CheckBoxImageGlyphInfo(UltraCheckEditorGlyphInfo, "Custom checkbox glyphs")
UltraCheckEditor1.Name = "UltraCheckEditor1"UltraCheckEditor1.Text = ""UltraCheckEditor1.UseOsThemes = Infragistics.Win.DefaultableBoolean.[False]
Infragistics.Win.UIElementDrawParams.CheckBoxGlyphInfo = UltraCheckEditor1.GlyphInfo
Please let me know if that doesn't work so I can look into it further. I think it will work, but I did not test it out.
Hi, Mike
The change needs to be universal, and so I will try your suggestion. Thanks.
Hi,
Do you need the glyphs for the header checkboxes to be unique? Or do you want to change the glyphs for all checkboxes in your application?
If the former, then there might be a way to do it using images the same way the Custom style of the UltraCheckEditor control works.
If the latter, then you should be able to set the GlyphInfo on the whole application by using the static CheckBoxGlyphInfo property on the Infragistics.Win.ElementDrawParams class. I beleive this setting will affect a CheckBox UIElement, even if that element is created by a DrawFilter, as long as it's contained within the grid.
Thank-you, Mike. Yes, I'm aware we could save a lot of trouble if we used the latest version. Unfortunately it's not an option in the enterprise environment.
Is there a way to do what my user's need without using an ImageFilter?
Thanks,