Microsoft Word: Adding ScreenTip changes text to {Hyperlink\| BookmarkName \o"screentip}, but want original text - ms-word

Microsoft word fails to add hyperlink over bookmark and show Hyperlink text everytime
I select the text.
Then i add bookmark from Insert -> link -> add
Then when i add Link (ctrl+K) and go to insert document and screentip by clicking bookmark
It just show this text instead of original text.
Can anyone suggest what the issue is actually?

I think this is off-topic but you have more experience here than I do.
Press Alt+F9 to toggle display of field codes / results.
On some computers, this is Fn+Alt+F9. On Macs, use Opt instead of Alt.
The original text does not appear in the field code but is there and will show up in the document.
I originally missed your real question and the mistaken answer follows below.
This has nothing to do with the presence or absence of the bookmark.
This is the ordinary behavior of the Hyperlink and the AutoText fields in Word. The text displayed in the document does not appear when you display the field.
This is examined in my article on the Microsoft site about Pop-Up text in Word.
Here is the field insertion dialog box:
Here is what it looks like in the document:
And here is the field code shown using Alt+F9:
Note that the display text is not shown at all in the field code. It is still there. If you select the field and enter the following in the Immediate Window of the vba editor you will see the display text.
? Selection.Fields(1).Result
I suspect this comes from the origination of these two fields. With the hyperlink field, it is often created using selected text. It does not especially make sense, but it is how the field operates.

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.

Gtk Perl : remove default text in Text Entry without using a placeholder

While I am aware that set_placeholder_text("I am the placeholder") will solve my problem, this feature is only available from Gtk+ 3.2 onwards.
I would like to know the simplest method to remove the default text from a Text Entry box when the user clicks on it.
Using the 'focus-in-event' signal is a satisfactory solution here.
In the callback, set the text in the Text Entry box to "" so that it is cleared when clicked on (i.e., when the Text Entry box gets focus).
https://developer.gnome.org/gtk3/stable/GtkWidget.html#GtkWidget-focus

Custom Drop Down Menu in a Custom Word Content Control

I'm able to create a DropDown ContentControl in word such that a user can select an item from the drop down and that item becomes the text displayed in the ContentControl. However I've noticed that when you create a citation that drop down list contains command items that can launch dialogs. Is there any way to replicate this behaviour but with custom content controls that launch custom dialogs.
Apparently this is impossible as mentioned in the link below because:
This isn't a "standard" content control. This is something Word puts around a Citation field (and around Date fields and some other kinds). But the functionality is Word-internal and proprietary. It's not something that's exposed in the API. IOW, you can't do that, I'm afraid...
http://social.msdn.microsoft.com/Forums/vstudio/en-US/40542235-1a32-45e6-9aef-55709021ce53/how-do-i-create-a-contentcontrol-with-a-menu-like-when-inserting-a-placeholder?forum=worddev