How to create quick-entry dialog with system-wide shortcut? - macos

I really like how Things gives us ability to capture todos without switching to the app. How to do this? I can't find any relevant code with google. Any ideas, urls or maybe code snippets?

I learned about global hotkeys from the example on this website here.

I'm not familiar with Things, but it sounds like you're describing a Service. Services live in the application menu under Services.
TextEdit.app provides a "New Window Using Selection" service, for example.

Related

Removing About tab in personal msteams application

I have a brief question - is it possibile to get rid of "About" tab in personal msteams application? I would like to have only my custom tab.
It is not possible to remove the About tab for an app. It is by design and is used to display the basic details of the app like its functionality, terms of use and privacy policy. We do not have any plan to allow users to remove this.
I'm not sure why all the downvotes, I think it's a valid question - perhaps people are getting confused and think you're trying to remove a "normal" tab in a channel.
I don't think it's possible to remove an application's "About" tab though - certainly I've not seen where/how to do so, and I think it needs to be there so people can easily access your privacy policy, terms, description, etc.

Disabling the zoom/pan/scroll functions for the Webbrowser Control

I have seen many posts about how it's impossible to disable the zoom/pan/scroll functions on the Web-browser control natively for Windows Phone 7. So what options do we have?
I did a little digging and I found a quick way to do so, so I thought I'd share it here.
It's not a quick few lines of code which is a shame but all of it is up on the web so it should be easy to implement. First you need the Linq ddl and this class here called LinqToVisualTree. Then you can use these in a WebBrowserHelper class where you just pass in your web browser when you create the webBrowserHelper and the rest is taken care of. You can even set whether or not you'd like the scrolling to be disabled.
One problem I found with this was that when I double tap on the web page it still zooms in sometimes. Does anyone know how this might be fixed? I'm sure there is a way to do it using the LinqToVisualTree but I can't figure it out.

TextBox in MessageBox in Windows Phone 7

Is it possible to insert a TextBox for the user to input text on top of a MessageBox in Windows Phone 7?
Thanks.
No - it isn't
But the "Input Prompt" in http://coding4fun.codeplex.com/ might help you. See the overview at http://www.windowsphonegeek.com/articles/Coding4Fun-Toolkit-for-WP7-Overview-and-Getting-Started
I've used the "Input Prompt" for a situation similar to this and I had no problems. This should work as suggested by Stuart. Also Stuart is right that this is NOT possible at this time.
You might also want to check out Telerik controls, RadWindow for WP7 to be specific should address the problem nicely. Only thing is that these are commercial so you'll have to purchase a license.
But if you want to create your own from scratch I watched a video, "Creating a Custom Popup", on silverlight.net that can get you started nicely. Basically it gives you the "pop up" and you can add any other controls you need inside of it.
Bear in mind all these solutions can be styled and positioned to "imitate" the look and feel of a messagebox like you wanted. Hope this helps.
This is not possible in native MessageBox. You can try Coding4Fun library as mentioned before.
An alternative solution is the InputPrompt which can be found in Telerik library (you will have to pay for this one though).

GWT and MVC type calls

I have a GWT app that when launched it takes you to a page with just a menu. So as a shortcut type thing I would like the users to be able to go straight to the page they want. So if the default start page is x, the should be able to say x/add and it will take them to the add page. How would I get that in gwt? Do I need a bunch of different entry points?
To accomplish this, you should use the URL's "fragment", which is the part after the #. For example, if your app is at /x, you could have a different UI displayed when someone navigates to /x#add
If you don't want to write this logic yourself, you should look into the gwt-presenter project, which was written to make MVP apps easier, but also includes an EventBus (to publish events to all corners of your app), and a PlaceManager to facilitate events being fired when the fragment changes (and to change the fragment at will).
Seems like a discussion we already had so I'll just link to the related question. Please see the answers and comments there. Basically, it might be advantageous to just interact with the History class directly, instead of introducing MVP to your project, but YMMV (I'm a huge fan of MVP myself, but it's not for everyone. Besides, I like to know the stuff "under the hood" ;))

How do I write a custom start page for VS 2008?

I've looked around, and not found much documentation on this, so I thought I'd ask where all the experts hang out.
I would like to create a new start page, with bug tracking and source control interfaces, rather than the standard MSDN feed. I seem to remember that one can do more than just supply a different URL, but can actually implement a component to run as the start page, which needn't use web content. I may be wrong. Can anyone please give me some tips?
You can do is to create a DTE ToolWindow (read: Creating a ToolWindow hosting a .NET user control) and host your controls there, then its pretty easy to create an addin that will show the tool window as a document at runtime. (The same way that the start-up page looks)
Go to Tools > Options > Environment > Startup and put your RSS URL in the Start Page news channel field.
That should give you enough, but if you want to do more you can select open home page in the at startup dropdown and point it at a URL with the appropriate content. If you use an intranet with Windows authentication you could display user specific stuff.
This will be completely customizable in VS 2010. You'll be able to do anything you want to on the start page.

Resources