Setting the default Find 'Search in' scope in a Visio file to 'All pages' - visio

When you open a Visio file, and press Ctrl + F to bring up the Find dialog, of the 3 possible scopes ('Selection', 'Current page', 'All pages'), the default scope is 'Current Page'. I want my default scope to be 'All pages'. Is there any way to set this dynamically upon opening any Visio file?
There does not seem to be any group policy relating to this setting.
Also, I recorded a macro to do Find, and as part of that to change such setting before executing the Find. But the macro doesn't pick up on this setting, or even the recording of the Find itself.
I also searched unsuccessfully for Visio interop libraries that might provide support for this.
Many thanks.

Related

Textmate scopes in custom hover-provider for vscode extension

I've created a custom language extension for my own script language. I've written a tmlanguage file to tokenize my script and do custom highlighting. I created a hover-provider that currently only shows the word that is hovered for testing the provider itself. I want to react on the textmate scopes of the current position in this hover, like the vs code Developer tool "Inspect Editor Token and Scopes" does.
At the end I want to react to one particular scope whose value I want to read and show a corresponding image of this value in the hover.
Fore example a line in my script could look like:
setImage(dic_1/dic_2/testImg)
Now I want to show the image that correlates with the path in the brackets if I hover over it.
I tried to find something in the documentation (https://code.visualstudio.com/api/references/vscode-api#languages) if there is something that would help me but couldn't see anything related.
I tried to ask ChatGPT for help after he suggested "possible internal and not public available methods" it suggested to create a custom hover provider with the help of the library "oniguruma" and tokenize the document again.
However, this feels a bit like an overkill. If vscode has a internal tool that does return the textmate scopes I would guess there is a easy way to access those tokens.
I found this thread (Is there a way to find the textmate scope from within my VSCode extension language functions?) but I don't rally understand why I need to write another parser.
Is there any way to access this textmate scopes in a hover-provider?

MS Word Personal Templates

I'm working with MS Word and am trying to create a list of customized template(s).
i.e. Open Word (2013 / 2016), in the 'New' menu you'll see a list of "Featured" templates, I would like to add my own list of templates.
Through research (Handy Blog), I've learnt that you can create a new template and add it to the "Personal" templates. My problem is, I'd like it to be my own name - instead of Personal, I'd like to have my own heading, say MyCustomTemplates.
From some further reading, I've read a few mixed opinions from this and some even saying that it is impossible, as these 'headings' are hard-coded (Office Forum)
Graphical explanation:
Doing this manually will be my first step, from there - I'll be adding these templates programmatically.
To help anyone that comes across this - below are my findings (including some really useful forums and feedback) and the solution I am most likely going to go with;
After tons of research I have noted and got confirmation that, to change the name of either of the Word headings (FEATURED, PERSONAL etc.) is not possible - Office have hard coded these - see this thread.
You do have some options though:
Using the PERSONAL tab within Word, you could create your own
templates for use (the name would however, remain "PERSONAL") > This
URL will take you through the process, step by step.
If you prefer using a "Support Office URL" - here it is.
As suggested by Doug Robbins, in this thread - you could "Add the New Document or Template command to the Quick Access Toolbar and create a folder under:
C:\Users[User Name]\AppData\Roaming\Microsoft\Templates". This is not ideal for my implementation.
Create an Addin Template using this URL
Use the Ribbon XML, (this is most likely going to be my route): Create a Ribbon XML for the Word application, the user must select this option (click on your ribbon item), then from a folder that you specify, let the user select a template (that you've added) for them to work with. Load the template to the current word document.
I hope this helps.

K2: How may I open a file in a new window unless I already have such a window open?

I have a K2 Smartform that displays a list of file names. When the user clicks a file name, the program opens that file (all of them are PDFs) in a new tab in the browser (IE). This is good so far. If you click on a second file from the list, it opens in a third tab. That is not what the user wants.
They want the second file selection to open in the same window as the first file.
This is the process I can see:
Click on the file in the list.
Open in a tab.
Click on a second file in the list.
If there is already a tab open with a file from the list, open this file there. Otherwise, open a new tab for the file.
I suppose automatically closing the first tab when they click on the second file would accomplish the same thing.
How can this be done?
When you deal with opening links, first of all, what you can do is limited. Indeed, browsers (IE, Chrome, etc...) can be configured by the users to open links in new tabs, windows, etc... and you as form developer cannot change that.
I have made a jsfiddle to reproduce your situation and propose a solution you can test. I don´t guaranty it will work as I use a Mac but I also describe a better solution below.
You can find it here:
https://jsfiddle.net/chevdor/45k40npv/
I guess the first example (#1) is what happens for you at the moment.
Using the 'target' attribute, I tried to implement a solution that may work for you. Click on #2 and #3 and check whether this work.
I cannot test that since I use a Mac.
You can read more about the target attribute here:
http://www.w3schools.com/tags/att_a_target.asp
Another solution that would give you more control is to use an iFrame control. I think it comes in standard with SmartForms now. If not, you can for sure get it from the community site. I recommend you create a new View with this iFrame and define one parameter (string) called "url".
Let´s speak in K2 rules languages :)
"When the parameter changed", "and the parameters is defined", if you 'Transfer data' passing your URL to the iFrame control, it will display your doc. If the user clicks another document, it will update the SAME iFrame. With this solution, no tab will ever be involved.
Please note that it will work great for any document supported by your browser. Some types may require a plugin. Other documents (ie zip, etc..) will NOT appear but be downloaded instead.
I hope this helps.
Best regards,
-chevdor

Customize basic search form and provide appropriate search results

In basic search form I have included checkboxes to detect duplicates on name & phone number.
How shall i proceed further.I have included fields on /custom/modules/Contacts/metadata/SearchFields.php and searchdefs.php.
Please help.
SugarCRM's Basic and Advanced Search field arrnagements can (and should) be configured using the Studio Tool. Log in as a System Administrator, click the Admin link in the top right corner and find the link for Studio
Within Studio, navigate to the module you're like to configure, go into Layouts, then Search, then Basic Search. The screen arrangement can be configured using drag-and-drop 'bricks' to represent the fields. All database fields for the module can be added to the Basic or Advanced search filters.
The screen can be configured using code, but I don't see why you would opt to do that. If you do, though, be sure to clear your cache using Repair and Rebuild or by enabling Developer Mode in the System Settings.

Word forms with too many ActiveX checkboxes load slowly

my company's software product has a feature that allows users to generate forms from Word templates. The program auto fills some fields from the SQL database and the user can fill in other data that they desire. So we have a .dotx template that holds the design of the form, and then the user gets the .docx file to fill out when they call it from our program.
The problem we're having is that some of our users have been finding that the forms take an exceptionally long time to open up and then, once open, are so slow to respond (scroll around, etc) that they're unusable. So in my investigations so far, I've found out that the problem systems are one with lower powered CPUs (unfortunately it happens for systems above our system requirements) and the Word forms that cause the problems are ones with large amount of ActiveX style checkboxes on them. I verified that reducing the ActiveX checkboxes fixes the form loading problems.
So I have the following questions about solutions (we're using Word 2007):
1) Is there any way to configure Word, or some other settings, so that there won't be such a strain opening a Word form with lots of ActiveX checkboxes? Any way of speeding up Word's opening?
2) Using Legacy style checkboxes instead of the ActiveX ones makes the forms load fine, but it looks like the user has to double-click the checkbox and change Default Value->Checked. Is there a way to configure it so that they can simply click on the checkbox to tick it? "Legacy Forms" checkbox as a name kind of worries me (Legacy…), does that mean a future version of word at some point wouldn't load the checkboxes because they're "legacy"?
3) Yes, it became clear to me after a little bit of research into solutions that Word is not the tool for the job for forms like I'm describing. InfoPath seems to be exactly what we should have been using all along but unfortunately I wasn't involved in the decision making or development of these forms, just tasked with coming up with a solution.
I'd appreciate answers to any of these, or if anyone has any other ideas for solutions to this problem.
Thanks
I'm about 3 years too late, but if you want a legacy checkbox to act like a checkbox, you have to restrict editing on the document or section. (You can lock just a section, if you want.) Locking--on Word 2010 it's called "Restrict editing"--is an option under either the Developer tab or the Review tab.
If you restrict editing in this way, the user cannot edit the text but can fill in the form field, so if the form field is a checkbox, the user can click the checkbox on or off; if the form field is a text box, the user can fill the text box.
If you choose to lock off just a section, you'll probably want to use continuous section breaks (Page Layout > Breaks > Continuous) and specify which section. (In the space where you choose form editing as your kind of restriction, there's a small link that lets you specify which section or sections are locked.)