popup

make a WPF Popup not screen bound

冷暖自知 提交于 2019-12-01 15:42:53
问题 The default behavior of a Popup is if it is placed where it would extend beyond the edge of the screen, the Popup will reposition itself. Is there a way to turn this behavior off? I have a Popup that the user can drag around the screen. However, when it gets to the edges it gets stuck. It gets stuck on the edge and stays there until the mouse is dragged far from the edge. Also, I have two monitors and when the Popup is dragged to the edge the two monitors share I get flickering. The Popup

How can I change the background color of a spinner popup?

隐身守侯 提交于 2019-12-01 15:23:55
I'm trying to set the background color of a spinner popup but everything I've tried didn't work properly. This is the spinner control: <Spinner android:id="@+id/myspinner" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@null" android:drawSelectorOnTop="true" /> When I click on it, it shows a popup with a white background, and I want to change that. The xml line wich I use to populate the popup is: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content"

Determining which CustomPopupPlacement was used for WPF Popup

天涯浪子 提交于 2019-12-01 15:02:58
I'm trying to figure out which of the passed in array of CustomPopupPlacement positions have been used when the popup actually renders. Is there any event to detect this? This msdn thread from 2009 seems to be exactly my issue however there does not seem to be an answer for it. http://social.msdn.microsoft.com/Forums/da/wpf/thread/4c6d216a-0011-4202-aa7e-2fccef3cc355 The marked answer seems invalid and my situation is exactly as the OP in the thread. I'm going to have my popup with 4 paths and use a DP to toggle visibility on three paths to choose the correct arrow path being rendered. So

For a Google Chrome extension, how do I define a stylesheet toggle within the Popup?

让人想犯罪 __ 提交于 2019-12-01 14:57:30
When a user clicks on the browser icon for the extension, it brings up the Popup that has been defined. I need to create a toggle button to turn on/off a stylesheet for a specific page/domain when a user clicks a button that is within the popup. For example, when a user uses the Adblock extension, when the user clicks the browser icon, it brings up the popup, which has a series of links. One such link is "don't run on this page", which then changes to "enable" which the user can click to turn it back on. Another example (much better example): Classic Popup blocker has a button on the popup

Opening an external website in a modal popup

╄→гoц情女王★ 提交于 2019-12-01 14:44:42
I know that <a href="http://www.example.com" target="_blank">Click here</a> opens the link in a new tab (default behaviour in Chrome and Firefox) and that <a href="http://www.example.com" onclick="window.open('http://www.example.com', 'newwindow', 'width=700,height=500'); return false;">Click here</a> opens it in a new window . But how to open an external page in a modal popup (centered on screen, rest of the original page "darkened")? Is there a nice way to do it? I tried the following code, but it doesn't seem to be working (click: popup opens, reclick, it closes, reclick on link: it doesn't

WPF: PopUp on MouseOver of a ComboBoxItem

微笑、不失礼 提交于 2019-12-01 14:24:21
Does anyone know of an example of how to display a PopUp on MouseOver of a ComboBoxItem? TIA EDIT: I know how to create, style and position the PopUp but not how to display it! I may be retired. Before we start, could you just use a tooltip? otherwise, style the ComboBoxItem's control telmplate, include your popup in the style positioned where you want but set the Isopen property to false. Use a trigger on mouse over to set your popup's IsOpen property to true. here is an example of using a trigger OnMouseOver you will end up with a trigger in your style like this :- <Style.Triggers> <Trigger

Enable right click in jFrame

偶尔善良 提交于 2019-12-01 14:20:54
Hye there I am searching for how to enable (only and only) right click and show a popup menu in jFrame using NetBeans; using my code as: private void formMouseClicked(java.awt.event.MouseEvent evt){ pop.show(evt.getComponent(),evt.getX(), evt.getY()); } I'm still unable to get the best results because it also popups on left click too suggest me any hint that I'm doing any blunders Thanks in advance. You can use: if (evt.isPopupTrigger()){ //Show menu and do stuff here } This is what it should done like this truly It's amazing and helpful private void textfiledMousePressed(java.awt.event

Post a Form to Popup window not to the parent

流过昼夜 提交于 2019-12-01 13:47:26
I want to post a forma poupup window. Problem is, the form posts successfully but It also posts on the parent window. I want to submit the formonly in popup window '<input type= button value ="Submit Form" onclick="adNetworkForm()" > <script> function adNetworkForm(){ targetUrl = "http://somesite.com" var myForm = document.createElement('form'); myForm.method = 'post'; //myForm.action = targetUrl; var inpt1 = document.createElement('input'); inpt1.setAttribute('name','a'); inpt1.setAttribute('type', 'hidden') inpt1.value = "1"; var inpt2 = document.createElement('input'); inpt2.setAttribute(

Bring up user form when clicking on cell

╄→гoц情女王★ 提交于 2019-12-01 13:41:20
I have a spreadsheet with a list of people in the first column and various bits of information about them in the rest of each row. I have a userform which will populate and subsequently edit each record, which I want to have pop up when the user clicks on the person's name. e.g.: Name Age DOB Postcode John Smith 55 3/6/1958 RM3 5WO Mary Jones 22 4/2/1991 RM2 6TP So I want to be able to click on John Smith (A2) to bring up a form with fields for his age, DOB, postcode etc. I also want to be able to use the form to add entries, so it will also function on at least one row below the list. I've

Enable right click in jFrame

两盒软妹~` 提交于 2019-12-01 13:09:07
问题 Hye there I am searching for how to enable (only and only) right click and show a popup menu in jFrame using NetBeans; using my code as: private void formMouseClicked(java.awt.event.MouseEvent evt){ pop.show(evt.getComponent(),evt.getX(), evt.getY()); } I'm still unable to get the best results because it also popups on left click too suggest me any hint that I'm doing any blunders Thanks in advance. 回答1: You can use: if (evt.isPopupTrigger()){ //Show menu and do stuff here } 回答2: This is what