Hi.
I am currently working with UltraPrintPreviewDialog, and for some reason when I use the following line of code to change the caption, the captions for a bunch of the buttons that show the print icon on the toolbar, and the hand icon, and few others, will never have an updated caption. However, in the toolbar menu they will be properly set.
I am able to reproduce this issue on version 14.2 and version 16.2, and on version 10.3 this seems to be working properly.
Here is an example of what I am doing to change the caption for the hand tool
Infragistics.Win.Printing.Resources.Customizer.SetCustomizedString("PrintPreview_Tool_Hand_Tool", "THIS IS A TEST");
For some reason, the above code will show "THIS IS A TEST" in the drop-down toolbar menu, however when I hover my mouse over the hand icon it does not update, and as stated this is happening for a bunch of the buttons in this dialog.
Am I doing something wrong here?
I created a simple test application on my end to validate this, if you (someone) needs me to upload this please let me know,
Hello Daniel,
To change the tooltip text of a tool in the UltraPrintPreviewDialog you have to use a different resource string that contains ‘ToolTip’ instead of ‘Tool’. For example for the HandTool your code will look like this:
var customizer = Infragistics.Win.Printing.Resources.Customizer;customizer.SetCustomizedString("PrintPreview_Tool_Hand_Tool", "THIS IS A TEST");customizer.SetCustomizedString("PrintPreview_ToolTip_Hand_Tool", "THIS IS A TEST");
I wasn't able to find that resource string anywhere in your documentation, could you please direct me to where those resource strings are, please.
Daniel,
The resource strings are found in the table of contents of the windows forms documentation with the following path:
Developers Guide -> Assemblies -> Assembly Resource Strings Refrence -> WinPrintPreviewDialog Resource Strings Reference
Let me know if I may be of further assistance.
I know where the resource string documentation is located. What I dont know is where the one(s) that you are telling me to use from the previous answer are located, they seem to be missing along with a bunch of other captions related to the print preview dialog.
For example.
PrintPreview_ToolTip_Dynamic_Zoom_Tool
PrintPreview_ToolTip_File
PrintPreview_ToolTip_Hand_Tool
PrintPreview_ToolTip_Next_View
PrintPreview_ToolTip_Previous_View
PrintPreview_ToolTip_Print
PrintPreview_ToolTip_Snapshot_Tool
PrintPreview_ToolTip_Tools
PrintPreview_ToolTip_View
PrintPreview_ToolTip_Zoom_In_Tool
PrintPreview_ToolTip_Zoom_Out_Tool
Where are the above keys located within your documentation, please?
Attached is a text file with all the UltraPrintPreviewDialog resource strings, which you can use until the documentation is updated.
Currently we are working on the resource strings documentation and all the tooltip strings from the UltraPrtintPreviewDialog will be added shortly.