Hello I want to create dynamic tools in static toolbars.
I want to add Button tool to toolbars and set the forecolor of it.
How i will achieve this?
Thanks & Regards
Hi brijpatel,
If this is still an issue, please let me know as I have not heard back from you following my last inquiry. It sounds like the theme you mentioned is likely an AppStyle that you are loading; however, I have been unsuccessful in reproducing the behavior that you have described.
I have constructed and attached a sample, using the NetAdvantage 8.3 assemblies to model your scenario as closely as possible. In this sample, both a style is loaded as well as the forecolor appearance for the tool.
Please find the sample attached.
If you have any further questions regarding this behavior, please let me know.
Sincerely,Chris KDeveloper Support EngineerInfragistics, Inc.www.infragistics.com/support
Can you provide me with further information on how you are applying the themes that you have referred to?
Hello Boris
Thanks for your reply.
I have found some thing new. when i provide any theme for infragistic it wan't change the color.
But for without theme its working.
So what we can do for same.
Hello,
You could change this with 'SharedProps'. It works fine for me in v8.3, I am using the following code:
ButtonTool tool = new ButtonTool("1"); ultraToolbarsManager1.Tools.Add(tool); ultraToolbarsManager1.Toolbars[0].Tools.AddTool("1"); tool.SharedProps.DisplayStyle = ToolDisplayStyle.TextOnlyAlways; tool.SharedProps.Caption = "121a"; tool.SharedProps.AppearancesSmall.Appearance.ForeColor = Color.Red;
Please feel free to let me know if a question about our toolset comes up on your mind.
Hello Borish
Thanksfor your reply.
As already i told i am using 8.3v.
SharedPropsInternal does not exists with this version so can you give me any alternative to this.