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.
Hello Vinay,
Could you please review the sample attached to this post and see if it meets your requirements.
Basically what you could is to take a look at the code in the 'ExpIndicatorsCF' and try it in your application. You could also use a bigger image similar to the plus sign.Please feel free to let me know if I misunderstood you or if you have any other questions.
HI Boris,
By using your example applying in to my code i noticed there is "image" overlap in expansion and collapse of child bands,in my project UltraWingrid have more number of child bands when applying to that image which is used for expansion and collapse is overlapped with same another image.I am attaching the image this post,please provide me solution for this.
Thanks& Regards,
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.
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.
Thanks&Regards,
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.
Hello,
I am just checking about the progress of this issue. Please let me know If you need my further assistance on this.
Hi boris.
Thank you for your help,we solved the issue by using your example,Thanks for Support.
Vinay