popup

Bypassing the “no popup” if I want a javascript to run when extension clicked

依然范特西╮ 提交于 2019-12-06 10:06:45
I have a chrome extension which I want to fire whenever I press the popup. Currently I can do this only if I remove the popup.html from manifest.json, since there's a restriction on that. However, I need the popup.html How do I get both? I have tried placing the exact same thing everywhere, in the popup.html, in the popup.js (which is linked correctly in the popup.html) and nothing. In short, if I place this in the background.js: chrome.browserAction.onClicked.addListener(function(info, tab) { speakMe(); }); It works. However, that implies no popup.html in the manifest. So, naturally, I try

How to make WPF pop-up windows not be hidden behind main application?

懵懂的女人 提交于 2019-12-06 09:56:40
问题 In a WPF application, I have buttons which pop up instances of windows. I click the first button and the first window pops up correctly in front of the main application. I click the second button and the second window pops up correct in front of the main application. However, the first window now moves behind the main application. This is confusing and unexpected since it is often in the middle of the main application and thus seems that it disappears until the user moves the main application

Binding a Popup to another control's relative screen position

对着背影说爱祢 提交于 2019-12-06 09:53:42
问题 I'm writing an XBAP with a complex Popup (Canvas Z-index of 99 with a grid on it...) that I would like to "attach" to the button that opens it and follow that button around wherever it goes on the screen. For example, if the button is in a ListBox or an XamDataGrid I would like the popup to follow the button as it scrolls through. If it is beneath an Expander I want it to stay attached to the button when the expander forces it to move, etc. Any Ideas? 回答1: When using a Popup , neither

Android: How to/Show wifi (select SSID to connect) as dialog or popup?

馋奶兔 提交于 2019-12-06 09:25:51
I develop an application and want to show wifi networks as a dialog (popup). My code is: startActivity(new Intent(WifiManager.ACTION_PICK_WIFI_NETWORK)); It just show wifi setting as: But I want it show as dialog like this : I wonder this is wifi dialog or we can show another activity as a dialog. 来源: https://stackoverflow.com/questions/28828179/android-how-to-show-wifi-select-ssid-to-connect-as-dialog-or-popup

cocos2d. How to create a popup modal dialog (with CCLayer)

江枫思渺然 提交于 2019-12-06 08:49:28
I need to make a modal dialog(inherited from CCLayer) that is showing in the center of the main layer. While it is showing, you can not press any other button outside the dialog. Just like a normal modal window in MS Windows System. The problem is that I can not figure out how to disable the mainlayer's touch events while the dialog is showing. Any help would be aprreciated. Just set self.isTouchEnabled = NO; in the main layer while the popup is displayed. Then later set it back to YES. Oren Bengigi This works for me in Cocos2d-x but can be adapted to Cocos2d too. I've change setParent to:

ControlsFX: CheckComboBox Popup Styling

狂风中的少年 提交于 2019-12-06 08:36:26
I am trying to style the actual popup menu (not the cells, because I believe I can style those). I have tried using the ".combo-box-popup" selector and the ".combo-box-popup .list-view" selector to no avail. I believe this is because the CheckComboBox delegates to an internal ComboBox and so the usual styling doesn't work, but I may be wrong. I have even tried (after searching through the code) to get "at" the popup itself but couldn't figure out a way to do this. I am only able to style the gray button cell by calling "setStyle()" on the internal ComboBox within my derived skin class (I

JavaFX popup hidden when stage is in fullscreen mode

隐身守侯 提交于 2019-12-06 07:55:53
I am trying to popup a dialog over my fullscreen primary stage in javafx. When I create my popup, it is unexpectedly hidden behind my fullscreen primary stage until the stage is removed from fullscreen mode (via ESC ). If I make my primary stage maximized and undecorated instead of fullscreen, then my popup will appear on top of the primary stage as expected. Am I missing something about how fullscreen mode is different than maximized and undecorated mode? Am I using fullscreen mode improperly? I am using java version 1.8.0_20 on CentOS 6.5 with Gnome. Here is my SSCCE: import javafx

How to center Popup in Metro style app in c#

谁说胖子不能爱 提交于 2019-12-06 07:54:25
Is there any way to show a Popup in Windows 8 Metro centered? Setting VerticalAlignment and HorizontalAlignment to "Center", and VerticsalOffset and HorizontalOffset to 0 causes howing popup with left-up corner in the center of the screen. Is there any way to do it nicely? To make this problem harder, this popup has different size in snapped view, where is also should be centered. Any thoughts? Hope this helps, how about placing the popup in a canvas then manipulate the canvas... XAML <Canvas x:Name="myCanvas" HorizontalAlignment="Center" Height="127" VerticalAlignment="Center" Width="191"/>

How to ensure that the popUp always displays above the PopUpButton? With test case and screenshot

好久不见. 提交于 2019-12-06 07:40:01
Few users of my Flex 4.6 web application are complaining, that the mx.controls.PopUpButton at the right bottom corner of it sometimes opens a List underneath it and is thus unusable (I can't reproduce that myself - probably an unlucky combination of their Flash player and/or font size setting?) How could I ensure, that the popUp component (in my case it is a spark.components.List) always opens above the PopUpButton? I suspect, that I should create a skin based on mx.skins.halo.PopUpButtonSkin and assign it to my PopUpButton? And I probably should use the PopUpPosition.ABOVE constant together

HTML5 Bubble Messages

a 夏天 提交于 2019-12-06 07:38:16
问题 There is a new HTML5 attribute for input field required which pops up a bubble message when submitting form and the field is empty. Is there any way of popping up the same bubble with different text? I want to use it for different validations (not just if it's empty or not). Here is a screenshot on this bubble (pop-up) in Chrome: 回答1: HTML5 provides a method called setCustomValidity to achieve exactly this. This method is a low level API to add new validation constraints and to add new/change