popup

How to show an text editing box “over” the screen?

此生再无相见时 提交于 2019-12-03 07:15:10
问题 I have an application that has a primary layout of portrait (it is fixed as portrait), and there is one place to type in text. I would like to launch like a popup window in landscape orientation with the background image fogged out. I know there is a Popup Widget, but any ideas for rotating the text edit box would be great. Rotating it into a portrait view (text box only) when the keyboard is slid out would also work, as would showing a new screen with the text box on keyboard slide. 回答1: The

WPF Popup Alternative

二次信任 提交于 2019-12-03 06:34:07
I have a window with a popup that pops when an item in a listview is double clicked. It centers to the main window and looks really nice floating there. The problem is when the user moves the main window or selects another program, and the popup floats on top of other stuff. I would like to have something like a popup, meaning that it floats on top of other elements in the window, but sticks with the main window when it moves (stays centered), and doesn't float on top of other programs. Can I make a popup act like this, or is there a better way to do it? It's possible that an Adorner will fit

how do I center javascript css popup div, no matter what the screen resolution?

那年仲夏 提交于 2019-12-03 05:39:41
I have the following code that opens a new popup window while disabling the background, the problem is that I have to position this so that it's 100px from the top (already got that through the CSS #dialog) and also in the center of the screen, no matter what the user's resolution is? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <script type="text/javascript"> function showPopUp(el) { var cvr = document.getElementById("cover") var dlg = document.getElementById(el) cvr.style.display = "block" dlg.style.display = "block" if (document.body.style.overflow = "hidden

How to change the color of the currently selected line in a code assist popup in Eclipse?

谁说我不能喝 提交于 2019-12-03 05:07:27
I've recently downloaded Eclipse 3.6, everything works fine, but there is one issue that really frustrates me. The highlight color of a currently selected item in a code assist popup is barely visible against white background. I've tried to mess with color settings, but it seems that there is no option for my needs. The line highlight color set in Windows color scheme is only used to highlight in a focused popup. I believe it is hidden in another part of Preferences. I personally wanted to change the highlighted or currently selected line color, and could not find anything in Colors and Fonts.

How do I create a popup window when doing oauth?

ぃ、小莉子 提交于 2019-12-03 04:05:32
I'm would like to do what lifestream and other sites have done with oauth authentication by using a pop up window. They open a popup window which somehow wasn't blocked by the popup blocker and grey out their site. Then upon allowing oauth access it says redirecting back to original site and kills the popup and returns the site to normal color. How would I go about doing something like this? If I posted anything I shouldn't have its alright because all these accounts are bogus anyway. The thing is, this is not a pop-up window. It's what usually called lightbox. A js script like fancybox,

window.open without popup blocker using AJAX and manipulating the window.location

梦想与她 提交于 2019-12-03 03:56:47
问题 When dealing with OAuth from the server, such as Twitter and Facebook, you most likely will redirect the user to an URL asking for app permission. Usually, after clicking a link, you send the request to the server, via AJAX, and then return the authorization URL. But when you try to use window.open when the answer is received, your browser blocks the popup, making it useless. Of course, you can just redirect the user to the new URL, but that corrupts the user experience, plus it's annoying.

How to popup list like a spinner without spinner in android?

邮差的信 提交于 2019-12-03 03:33:22
I have a spinner widget in my activity which lets users pick a list name. Normally, the function of the spinner is to switch between lists but for a couple of instances, I swap out the selection change listener to perform a different function with the same list of options. Once the selection has been made, the old listener is restored and life goes on. This is a bad and buggy arrangement. Instead, I would like to have a function that just takes a selection listener and some other parameters and shows a popup list that's populated by the same cursor (or and identical cursor) as the spinner,

android pop up menus

余生颓废 提交于 2019-12-03 03:08:24
I cannot find either one of these two views in the source, but have seen them both in many apps. Can anyone please tell me what they are called? Thanks The second one is an options menu from the action bar. I think it is implemented as a ListPopupWindow . The first one is not part of the Android SDK, though there are various implementations floating around. Here is an example of one designed for use with Google Maps, for example. Here is one designed for the "quick actions" pattern. I'm going to assume that they're custom made ones, so you won't find them in the standard Android libraries. The

Avoiding a Windows Firewall popup

南笙酒味 提交于 2019-12-03 02:49:06
My organisation produces a suite of Windows applications that make use of networking, and so when users run our software for the first time, the Windows Firewall (if it is running) brings up a pop-up, informing the user that our app(s) are trying to use the network, prompting the user to allow or deny access. This occurs with plenty of other apps (Spotify, to give one example), but ee'd like to prevent these popups from happening, as they can be a bit problematic for our users. Some Applications (MSN Messenger, GoogeTalk) operate without ever causing the Firewall to alert the user, and we'd

How to create a pop-up window in asp.net mvc?

痞子三分冷 提交于 2019-12-03 02:02:17
No javascript/AJAX to be used. when clicked on the hyperlink, it should open a new browser window. Basic HTML Anchor Element: <a href="http://www.w3schools.com/" target="_blank">Visit W3Schools!</a> ASP.NET WebForms HyperLink Element: <asp:HyperLink ID="HyperLink1" runat="server" Target="_blank">HyperLink</asp:HyperLink> ASP.NET MVC Style: <%= Html.ActionLink<HomeController>(c => c.Index(), "Click me", new { target = "_blank" }) %> All three open a new tab, would that suit your needs? If you're not using javascript, you need to use the target="_blank". But to do it in a cleaner mvc fashion, do