Hi,
I'm using the FormulaBuilderDialog to allow users to define custom calculations in a grid. In the "Function Builder" dialog, there's a "Help on this function" hyperlink. Clicking it goes to help pages like these:
ms-help://INFRAGISTICS_HELP/NetAdvantagev73/Win/WinElements/WinCalcManager_Logical_Functions.html
But these help files don't seem to be registered.
Where are these help files? Can we deliver them to clients as part of our application installation?
Or alternatively, can we somehow hide this hyperlink?
Thanks.
Oh, I never noticed that constructor. But you're right, it does allow hiding of the links.
Thanks!
Allrighty, I am back again :)
I just spoke with Mike Saltzman (a master on these forums), and he told me that this was actually addressed in the 2006 Volume 1 version of the product. You may already have the "fixed" version but since they did not change the default behavior, you are not seeing this change.
So, try this out: In the constructor of the FormulaBuilder, there should be a parameter that represents [the help links]. Pass in False and that should hide the help links. Try that out and let me know if that helps.
Hi again,
Thanks for getting back to me with the screen shot. Sorry my suggestion did not work :(
I am going to ask some of the Devs to see if there really is a way to get to that label and get rid of it.
I'm using 2007 vol 3.
The first line doesn't print anything because GetCustomizedString seems to return null when there isn't a customized version of the string. Using SetCustomizedString to set it to the empty string doesn't seem to do anything. The link is still displayed as "Help on this function".
Setting it to something else, "Help" for example seems to have no effect either on the screen.
Hello again,
I just did my research and came up with something for you to try. Add these 2 lines of code somewhere (Form_Load) and just execute the first line (comment the second line). See if that returns the same text that you see in the link button that you have on your formula builder dialog. If that is the correct text, then execute the second line of code. That is using the Resource Customizer class in the WinCalcManager assembly so that you can change the resource strings at runtime. Try setting the value of that resource to an empty string to see if it hides the link.
I am using the information contained within these help topics for this post:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2009.2/CLR2.0/html/Win_Customizing_Assembly_Resource_Strings.html
and
http://help.infragistics.com/Help/NetAdvantage/WinForms/2009.2/CLR2.0/html/WinCalcManager_FormulaBuilder_Resource_Strings.html
//Run this to see if the Output window shows the same text as your Link buttons
System.Diagnostics.Debug.WriteLine(Infragistics.Win.UltraWinCalcManager.Resources.Customizer.GetCustomizedString("FunctionBuilderDialog_HelpOnFunctionLink"));
//If that is the text that exists on your Link, try setting the text to an empty string and see what that does.
Infragistics.Win.UltraWinCalcManager.Resources.Customizer.SetCustomizedString("FunctionBuilderDialog_HelpOnFunctionLink", "");
Let me know if this does the trick for you. Thanks!