we have a windows application (VB.Net) which was developed in Infragistics 2003 Vol 2 (.Net Framework 1.1). In this application we are using Infragistics Hierarchial WinGrid. We got a situation where i have to Increase size of "+" sign for Expansion "-" sign for collapse in the hierarchial grid.
i've gone through articles links provided i.e. 4873, 5684. We prefer Article 4873 way of implementation, we tried your sample code provided in.
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=4873
but we didn't find any difference as far as Indicators size is concerned, it is still showing default indicator size only, all we did is ran your sample without any code modifications, are we supposed to alter any values to see the effect ? Please find attached screen shot for the same i.e. No_Difference_Indicator_size.png.we need exactly double the size of default Expansion Indicator size.
Thanks & Regards,
Vinay.
Hi boris.
Thank you for your help,we solved the issue by using your example,Thanks for Support.
Thanks&Regards,
Vinay
Hello,
I am just checking about the progress of this issue. Please let me know If you need my further assistance on this.
Hello Vinay,
There is another method for that and this time I attached my sample in case we want to actually discuss and work on something. Please review it and feel free to let me know if I misunderstood you or if you have any other questions.
Hi Boris,
I worked out with your class,it works fine but we have to use a custom icon in the place of "SystemIcons.Asterisk" and "SystemIcons.Exclamation".So could you please tell me the using of custom icons in the place of SystemIcons.
Could you please try to assign the following 'DrawFilter' to the 'WinTree' and see if it meets your requirements:
class DF : IUIElementDrawFilter { public bool DrawElement(DrawPhase drawPhase, ref UIElementDrawParams drawParams) { drawParams.Element.Rect = drawParams.Element.Parent.Rect; if (((ExpansionIndicatorUIElement)drawParams.Element).IsOpen) drawParams.Graphics.DrawIcon(SystemIcons.Asterisk, drawParams.Element.Rect); else drawParams.Graphics.DrawIcon(SystemIcons.Exclamation, drawParams.Element.Rect); return true; } public DrawPhase GetPhasesToFilter(ref UIElementDrawParams drawParams) { if (drawParams.Element is ExpansionIndicatorUIElement) return DrawPhase.BeforeDrawElement; return DrawPhase.None; } }
Please feel free to let me know if I misunderstood you or if you have any other questions.