show information about connection state on status bar - ms-word

VSTO document-level customization, using C#
I need to show permanent information about the connection state in a word document.
I had the idea to do it from the status bar but I don’t know how modify it.

The current object models for Word do not provide access to its Status Bar. The Word Status Bar provides a lot of information about the Word application, as well as controls for interacting with it and what it contains can be customized by the user. So there's no way provided for the Developer to access it, no should the Developer interfere with such an important part of the User UI.
EDIT: Since this is a VSTO document, it would be possible for you to display this information in the Actions Pane (task pane for the document). It would also be possible to display it in the Ribbon or possibly in the Title bar. The tricky part about this last is that the title bar will change/update as you'd be "sharing" it with the Word application. But the capability is built into the Word application, via its Window object. For example:
theDocument.Application.ActiveWindow.Caption = "custom text"
The text assiged to the Caption property will replace the document name and be positioned just before the text "Microsoft Word". If you want to retain the document name in the Title bar you'd need to query and append that to the string you assign to Caption.

Related

Changing the default displayAction and playAction labels in tvOS in Top Shelf

On tvOS if you look at the native Music or Arcade app's top shelf area their "play" action has the label of "Watch Playlist" and "Get" respectively. However I don't see a way to edit these values in my own app as the TVTopShelfAction is an NSObject with a single value: URL so I would assume this is just for directing the user based on where the button goes and there's no labelling props available for the container class as well (TVTopShelfCarouselItem).
The docs say: https://developer.apple.com/documentation/tvservices/tvtopshelfaction
"When configuring items for a carousel interface, you can specify a custom title and image for the buttons in that interface. If you do not specify a custom title and image, the system chooses default values based on whether you assigned the action object to the playAction or displayAction property of your item."
But it's unclear if that is referring to the TVTopShelfCarouselItem which the action becomes a part of and what value I should be changing to customize it. So is this something that's hidden in the TVTopShelfCarouselItem's namedAttributes prop? And if so...which one?
I've had this same problem. I've asked Apple about it and they responded that the documentation is wrong. There is currently no way to change the button titles.
There is also no way, that I'm aware of, to display the item's title without the user having to tap for details.
Hopefully in the future this ability is added.
I'd love to know if you find a way.

Taking a Word document out of design mode

This should be a really simple thing that for some reason I can get to work.
I have an MS Word document which has a drop-down field. If I double-click it - a dialog comes up to add or remove things from the drop-down field.
I just need to be able to get out of this mode so that the drop-down field behaves like it should from a user's point-of-view rather than from a design point-of-view. Basically I just need it to display the items rather than a dialog to allow me to add and remove the items.
According to what I've read, it looks like I should be able to do this by going to Developer, and then toggling the Design Mode button. This doesn't work; whether the Design Mode button is on or off I still can't get it to just act like a drop-down.
Thanks much
It sounds like you're using a legacy form field dropdown. For those to operate as a dropdown, you must protect the document for forms:
On the Developer tab, click on Restrict Editing. The Restrict Editing task pane opens.
In the task pane, check the box beside Allow only this type of editing in the document.
In the next dropdown, choose Filling in forms.
Click on Yes, Start Enforcing Protection.
Protected forms don't allow text to be edited in protected sections. In those areas, only form fields allow you to enter text. If that's too restrictive, look into Content Controls, which don't require document protection.

In vscode how do you tell if or where a document provided by a TextDocumentContentProvider is shown

I am working on an extension in vscode that uses a TextDocumentContentProvider to provide users with feedback on the effects of changes they make to the file they are editing.
A common use case is for the user to drag the virtual document to a separate pane so they get a side by side view of the live document and the virtual document.
To display the virtual document, I need to call showTextDocument(), however this opens it in the current pane, giving two copies of the same document, and also makes it the current tab, hiding the document the user is working on.
I do not seem to get open or close events for virtual docs - which would mean I could just not call showTextDocument(), and I cannot find any API that allows me to find out or set which pane a document is open in.
WebViews are a special document type. You neither can enumerate open tabs for them nor can you influence the exact tab position, except for the view column. OK, the same about the tab position can be said for normal text documents.

Drupal 8 - browser tab title translations for views

I am creating a multilingual site in Drupal 8. The browser tab title for nodes translate, but in a view the titles are all in english.
Currently, the goal is to create one view page and use a URL alias to direct to the other translation views. I have the filter set to content revisions for languages using the "Interface text language selected for page". On these view pages, everything but the title translates.
Is there a way to force the browser tab titles to translate without having to create additional view pages for each language?
Thank you in advance for any advice
If by "browser tab title" you mean Views' title, enable "Configuration Translation" core module, and then click on "Translate" link next to your View ("Operations" column, /admin/structure/views).
If you mean titles of nodes' which you output in a View, then check out settings of a default prebuild "FrontPage" View, because it works just great with content translations, maybe you've just missed some important settings which you can spot there.

Switching between forms in Subform panel in Microsoft access

I am new in Microsoft Access. What i want is to switch between forms in subform panel depending upon the user selects from drop down list. Attach file contains what i want
I google alot but didnt find any help. Thank you for your help.
Here is screen shot. but I am confused in finding control of subform.
Forms("frmMain").Form.subFormControl.SourceObject = "SubForm_2_A"
..should be all you need.
subFormControl is the name of the subform-container-control that contains Subform2.
frmMain is the name of the parent form, not labelled in your picture (actually, you might not have to put subform1 in a subform really, its content could be on the parent form).
EDIT:
The red frame marks a subform. Click on -1- to make sure the main form has the focus. Then click once on -2- and the control is selected, and its properties show up in the properties box on the right.
Note that you find the "source object" in the data page and the name of the control in the "other" page. Access makes the name (of the control) the same as the form, which is really not such a bright idea and rather confusing.