Tool Tip for text in iReport - jasper-reports

What functionality in iReport allows for tool tip text?
I have a field name description that contains very large text. Instead of displaying large text I want to show two or three lines and rest of text as a tool tip. How is this possible?

You can use hyperlinkTooltipExpression expression for textField element, for example.
You can find sample here.
In iReport you can call dialog for setting tooltip with help of context menu Hyperlink.

Related

Display static, selectable text in GTK app

I am trying to build a small GTK 4 app where the user inputs some data, the program does some computations, and it outputs results in a tabular format.
Currently, I have implemented this using a GtkGrid with Label objects showing the results. This works, but a major downside is that the text is not selectable by the user.
Is there a standard Gtk interface for outputting static, selectable text or tables? For example, in the Firefox (whose Linux version is based on GTK) settings page, you can use the cursor to select all the explanatory text.
Searching for "text" in the GTK documentation brings me to the Text Widget Overview page, which is all about multiline text editing. But I don't want my output to be editable—I just want the user to be able to highlight the text and paste it somewhere else if they want.
GtkLabel has a "selectable" property which does just that. It's also mentioned in a separate section of the GtkLabel docs

PDF - combo box values change another field values

I have a PDF form created. One of the fields is a combo box with 3 values. Based on the selection of these values in the combo box, I would like to change the value of another combo box or text field.
Combo box values =
Professional
Amateur
Novice
Results change the "other field"(which is going to be the title of the page)=
This is the professional cover sheet
This is the amateur cover sheet
This is the novice cover sheet
So to recap. If I choose professional from the combo box, I want the text in the other field to change to "This is the professional cover sheet". This text can either be in a text field or combo box or whatever you tell me will work. This field is going to be placed as the title of the page.
This one is even better, gives more options/complexity.
PlanetPDF - Click Here
Bam! Found the answer. This works perfectly.
AcrobatUsers - Click Here

MS Word: change existing captions name

this is my first post, so I would like to say hello :)
I have a very large document, it consists of ~150 captions.
I would like to change name of the captions, for example from 'Picture' to 'Pic.'
Is there any simple method to do it? I can't imagine changing all of the existing captions and cross-references manualy.
Best regards,
Michal
Here is the way:
Select the caption with a number that has the label that you want to change.
For example, if you have "Picture 1", select the entire caption including label, sequence number, and the caption text.
On the References tab, in the Captions group, click Insert Caption.
In the Label dropdown, select the label that you want or click New Label and add a new one.
Solution found on Word Tips:
https://word.tips.net/T003888_Changing_Existing_Captions.html
"If you want to change some of the text in the captions, you need to modify the fields used to create the captions. (Automatic captions are implemented through the use of fields in the document.) You can change the text in the fields by first displaying the field codes in your document (press Shift+F9). You should be able to see what the field codes look like for your captions; examine one to see how it is constructed, looking specifically for the text you want to change.
Next press Ctrl+H to display the Replace tab of the Find and Replace dialog box. Use the controls in the dialog box to specify the caption text you want to change (from within the field you examined) and what you want the text to be. You can then use the controls to step through all the occurrences of the text and change it, as desired.
There are other things you can change in the fields using this same technique. For instance, you may want to change the numbering of your captions from Arabic to Roman. If you examine the field code used for a caption, it may appear similar to this:
{Seq Figure *\ arabic}
You can easily use the Find and Replace method to change the word "arabic" to "roman." When you are done making the changes, press Alt+F9 to change the field codes back to their results.
If your caption changing needs are a bit more complex (perhaps, for example, you want to change the caption to appear above a figure instead of below it, or vice-versa), then the best bet is to change the settings for automatic captions and then delete all the existing captions. You can then use cut and paste (cut the figure and paste it back in the same position) to force Word to automatically add the caption with the new settings."
you can edit individual captions by using Outline view.
(Update) To clarify: to edit an existing table (or I assume figure) individual caption, open your word doc in Outline View and select the caption you'd like to change.
If you want to batch edit you may be able to use find/replace in Outline view to batch find/replace all.
(Caveat: I was not able to easily edit a table caption while in Print View, so tested Outline View and it worked.)
Using the Find and Replace function changes both the cross references in the main text and in the captions.

Tooltip for text / titles / headers in iReports

I am trying to have a tooltip text on mouseover on Column Header or any type of text field in Jasper iReports.
I found a similar question which was not properly answered so i have to re-open it...
What i essentially need, is to show descriptive information of a column when user hovers his mouse pointer over the report in Jasper Server.
You can use hyperlinkTooltipExpression expression for textField element, for example.
You can find sample here.
In iReport you can call dialog for setting tooltip with help of context menu Hyperlink.

How to create multiline tooltip text in GWT

I need to show tool tip text in multiple lines, but setTitle() method in gwt is simply ignoring the \n character?
Is this possible to achieve?
If you are using the title property then it is not possible to have multi line tooltip. This is not a GWT problem, but a browser tooltip implementation/handling issue. If you really need to have a multi line tooltip then use Popup panel or DecoratedPopupPanel.
This will involve a little extra coding than just making a call to setTitle, but as a benefit you get complete control over how the tooltip is presented.
setTitle worked for me if I included a \n as a line separator.