I am wondering if there is cache or something I keep getting wierd behaviour from the toolbar. I have 4 buttons on a generic control. I add the control to a form. depends on which form the control is added I either hide 2 buttons or show all 4.
I had all 4 buttons showing. Then added the functionality to hide the 2 buttons
ToolBar.NewRecordButton.SharedProps.Visible = SearchOnlyFlag ToolBar.MovePopUp.SharedProps.Visible = SearchOnlyFlag
Tested it worked great.
Now I can't get those 2 buttons to show up again. So far the only way I know how to get them back is delete the toolbar and recreate it.
I am using 71 HotFix Build.1067 and VS 2005.
Any help in this situation would be greatly appreciated.
VisibleResolved is on the ToolBase, not on the SharedProps. As far as the ButtonTool acting like a StateButtonTool, check the tool's type at runtime, is it actually an instance of a StateButtonTool, or is the drawing of the ButtonTool just incorrect. In either case, this should be reported to the support group as well.
The other things is with this problem my NewRecordButton acts like a state button. Even though it is declared as a buttontool. No where it is changed to statebutton.
Where would I find VisibleResolved ?
ToolBarManager.Tools.VisibleResolved ?
Check the VisibleResolved property on the tools. If it is False but the Visible property is True, there could be something else hiding the tool, like the CustomizedVisible property on the instance of the tool on the toolbar. If you still cannot get the tools to show, I would recommend submitting a sample reproducing the issue to the support group: http://es.infragistics.com/gethelp.