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,
I prepared a new sample for you. I used 'AppStylist' to assign a new image to the 'ExpansionIndicator' UI role in a new blank style. This does not mean that I removed the 'CreationFilter' because you still need to have the expansion indicator area resized(to be able to actually expand the rows when you are clicking anywhere in the image, because this image is bigger in size), I just removed the adding operation of the image.
Please review my new sample and feel free to let me know if you need additional assistance on that matter.
Hi Boris Toromanov,
Thank you very much, We solved the ultrawingrid collapse button issue with your great support,and also we have to fix problem of utratree collapse button which is also have smaller collapse button we need that bigger in size,how can we do that, can you please provide me support for solving that issue also.
Hello,
If I got this right I believe it is achievable with AppStylist only. When you run it, you could create new style library from File-> New Style Library... or(ctrl+N), then please choose 'Blank Library', choose "No, Leave on" in the next window. On the left you will have the 'Roles' pane, if you expand it you will be able to see the 'ExpansionIndicator' and after expanding it the UI Role you would need is 'TreeNodeExpansionIndicator'. You could modify it and save the whole style library to an isl file which you could load later on with 'StyleManager'.
And to illustrate the above said I also created a sample for you. I hope it suits your needs.
I am just checking about the progress of this issue. Please let me know If you need my further assistance on this.
we are in holidays sorry for late reply,Actually we are using .net advantage vol 2003,so how can we use app stylist file in our project ?? ,can u provide me a sample example using custom image for ultrawintree exapand button.
Thanks&Regards,
Vinay
Hi boris.
Thank you for your help,we solved the issue by using your example,Thanks for Support.
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.