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
Hello,
What platform and control are you using?
If you are using Windows Forms and the WinToolbarsManager, you could use the examples in the Create and Add Tools at Run Time topic.
Let me know if you have any questions with this matter.
Thanks for your reply. I am using winforms with 8.3v I can add buttontool to toolbar now.
Also i set the SharedProp.AppearancesSmall.Appearance.ForeColor = Colors.Red
But it can not set forecolor.
Could you please review the sample attached to this post and see if it meets your requirements.Please feel free to let me know if I misunderstood you or if you have any other questions.
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.
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.
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.