popup

Releasing mouse capture and letting mouse click pass through

ⅰ亾dé卋堺 提交于 2019-11-30 18:35:57
I have a control that is similar to a Popup or Menu. I want to display it and when the user clicks outside the bounds of the box, have it hide itself. I've used Mouse.Capture(this, CaptureMode.SubTree) as well as re-acquired the capture the same way Menu/Popup do in OnLostMouseCapture. When the user clicks outside the bounds of the control, I release the mouse capture in OnPreviewMouseDown. I don't set e.Handled to true. The mouse click will make it to other controls on the main UI, but not to the close button (Red X) for the window. It requires 2 clicks to close the app. Is there a way to

Is there any way to stop a WPF Popup from repositioning itself when it goes off-screen?

回眸只為那壹抹淺笑 提交于 2019-11-30 18:33:24
Is there any way to stop a WPF Popup from repositioning itself when it goes off-screen? I found this old question , but it didn't get a proper answer to it. Is there any way to do this? I'm willing to subclass it if necessary. Thanks. As Andrei points out, this behavior is deep inside the Popup control and hard to overcome. If you are willing to do some work it can be done by resizing and translating the content of the popup when it reaches the screen edges. For the purposes of the demonstration, we'll focus on the left edge of the screen. If we have some XAML like this: <Window ...

my chrome extension popup opens after a few seconds, it's slow compared to other extensions

前提是你 提交于 2019-11-30 18:22:06
When we click on the extension button , listed beside the address bar (where the URL appears), popup.html of the corresponding extension shows up. (of course, according to manifest.json ) When I click on lastPass, the popup appears instantly, but when I click on my custom-extension (contains nothing but popup.html), the mouse icon changes to loading for 1-2 seconds & then the popup opens up. Did some digging on why my popup is so slow, the google-groups had something like window.load=setTimeout(activate,0); Unable to find any related documentation, or working sample. Please help in figuring

I can't get magnific-popup animations to work

≡放荡痞女 提交于 2019-11-30 17:30:00
I've been through the excellent documentation for this and it's great. http://dimsemenov.com/plugins/magnific-popup/documentation.html I have the basic pop up working fine. My problem is with the animations. I just can't get them to work. Apologies if I've missed something very basic but I've spent too long on this now and hope someone can point out my mistake. It currently just appears no fade nothing. I've played with it on codepen and can recreate the issue by removing the CSS so perhaps this is not getting through correctly, although I know it is linking as it is styling the pop up just

Leaflet - get latitude and longitude of a marker inside a pop-up

可紊 提交于 2019-11-30 17:23:19
问题 I use the Leaflet Draw plugin. My goal is to create markers and show a pop up in which I can get latitude and longitude coordinates. I manage to get these coordinates with a javascript alert but I definitely don't know how to put the coordinates into my pop up. Here is the snippet : map.on('draw:created', function (e) { var type = e.layerType, layer = e.layer; if (type === 'marker') { map.on('click', function(e) { var lat = e.latlng.lat; var lng = e.latlng.lng; alert ("Latitude : " + lat + "

Releasing mouse capture and letting mouse click pass through

旧城冷巷雨未停 提交于 2019-11-30 16:51:31
问题 I have a control that is similar to a Popup or Menu. I want to display it and when the user clicks outside the bounds of the box, have it hide itself. I've used Mouse.Capture(this, CaptureMode.SubTree) as well as re-acquired the capture the same way Menu/Popup do in OnLostMouseCapture. When the user clicks outside the bounds of the control, I release the mouse capture in OnPreviewMouseDown. I don't set e.Handled to true. The mouse click will make it to other controls on the main UI, but not

BlackBerry programing - create borderless popup screen

元气小坏坏 提交于 2019-11-30 16:48:08
Do you know how to create borderless popup screen within Blackberry app? PopupScreen popup = new PopupScreen(new VerticalFieldManager()); popup.add(new LabelField("Hello!")); Border border = BorderFactory.createSimpleBorder( new XYEdges(), Border.STYLE_TRANSPARENT); popup.setBorder(border); 来源: https://stackoverflow.com/questions/4216382/blackberry-programing-create-borderless-popup-screen

BlackBerry programing - create borderless popup screen

大憨熊 提交于 2019-11-30 16:21:58
问题 Do you know how to create borderless popup screen within Blackberry app? 回答1: PopupScreen popup = new PopupScreen(new VerticalFieldManager()); popup.add(new LabelField("Hello!")); Border border = BorderFactory.createSimpleBorder( new XYEdges(), Border.STYLE_TRANSPARENT); popup.setBorder(border); 来源: https://stackoverflow.com/questions/4216382/blackberry-programing-create-borderless-popup-screen

How to close a popup window in Liferay?

↘锁芯ラ 提交于 2019-11-30 16:09:32
I load the WebContent edit portlet on a Popup window using the following code: <liferay-ui:icon image="edit" label="true" message="news-edit-url" url="${oneNews.newsEditUrl}" /> editUrl: taglibEditURL = "javascript:Liferay.Util.openWindow({dialog: {width: 960}," + "id: '" + renderResponse.getNamespace() + "'," + "title: '" + LanguageUtil.format(request.getLocale(), "edit-x", HtmlUtil.escape(assetRenderer.getTitle(request.getLocale()))) + "'," + "uri:'" + HtmlUtil.escapeURL(editPortletURLString) + "'});"; When the content is saved or published, the portlet is loaded on the popup window. I want

Open Highcharts in modal window

旧街凉风 提交于 2019-11-30 15:54:36
I'm working on a site where I use Highcharts quite heavily for presenting data in charts. I want to user to be able to "zoom" each chart into a modal window for better readability. I know how to manipulate the chart with its API, but I'm not quite sure how I can clone the chart and refer to the new chart with an variable? I've done alot of searching, and all I've found is how to open in modal window with Highcharts own modal library, but I'm using a modal library called Lightview. You can get the new range by the selection event and then get the respective position from the chart serie. See my