popupwindow

Refresh parent dropdownlist from popup in asp.net c#

蓝咒 提交于 2020-01-06 13:53:12
问题 I have a dropdwnlist control in my parent page - ASP.NET C#, on click of button there is a popup opening to add new value to the control. [+] In PopUp page - Save button , I have the following code : Response.Write("<script>opener.loadOptionLandlord('" + stid + "','" + strLandlorconn_dbame + "');</script>"); Response.Write("<script>window.close();</script>"); where loadOptionLandlord is a function in my parent page : function loadOptionLandlord(val,txt) { var opt = document.createElement('

Can't edit an edittext in a popup window without dismissing and recalling it first

馋奶兔 提交于 2020-01-06 05:41:08
问题 I am using a popup window to display some information and have an edit button that allows that information to be changed. I am loading all textviews, buttons and edittext fields and hiding/showing them as needed. The edittext fields are not letting me edit them. I have tried the below suggestion about setting focusable to true, but that isn't working. Any other suggestions? Tried this: EditText On A Popup Window EDIT: Below is part of my code. I've just included the parts for initializing the

Opening Popup Window is not working in firefox and google chrome

倾然丶 夕夏残阳落幕 提交于 2020-01-05 13:28:24
问题 I want to open a popupwindow (with close button only) when the user clicks a button and the parent window should be disabled until the popup window closed. For that I'm using the following code function popup_window(url) { popupwin = window.showModalDialog(url,null,'height=20,width=150,status=no,resizable=no,scrollbars=no,toolbar=no,location=no,menubar=no'); } Anyhow, this code is working perfectly in IE. But, I hav two problems. In firefox, it is not opening with the size I've mentioned in

Opening Popup Window is not working in firefox and google chrome

与世无争的帅哥 提交于 2020-01-05 13:27:12
问题 I want to open a popupwindow (with close button only) when the user clicks a button and the parent window should be disabled until the popup window closed. For that I'm using the following code function popup_window(url) { popupwin = window.showModalDialog(url,null,'height=20,width=150,status=no,resizable=no,scrollbars=no,toolbar=no,location=no,menubar=no'); } Anyhow, this code is working perfectly in IE. But, I hav two problems. In firefox, it is not opening with the size I've mentioned in

How to control accessibility focus for swipe down navigation for layout that has popup Window?

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-04 05:50:08
问题 I have a layout that looks like this. The view on the upper right (black background with white text) is a PopupWindow that is displayed on this view as follows: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); btnShow = (Button) findViewById(R.id.btn_show); showToolTip(); } private void showToolTip() { final PopupWindow popupWindow = new PopupWindow(this); popupWindow.setHeight(ViewGroup.LayoutParams

Android - Prevent button click outside of PopupWindow

怎甘沉沦 提交于 2020-01-04 02:20:05
问题 I've spent a while trying to get this to work, looked for similar solutions online, but none seem to work. I need my PopupWindow to only be dismissed on the click of the generate button, not by clicking outside the window. Anyone encountered this issue before? private void LoadRAMSPopup() { mainLayout.getForeground().setAlpha(150); LayoutInflater layoutInflater = (LayoutInflater) getBaseContext().getSystemService(LAYOUT_INFLATER_SERVICE); final View ramsView = layoutInflater.inflate(R.layout

How to display a custom Dialog box at a specific position?

我是研究僧i 提交于 2020-01-02 14:04:10
问题 I have a Button whose click pops up a dialog box.The dialog box is getting displayed at center.But i want to display it just below the button.How to do this ? I tried using popup window also.Here is the code private void showPopup(final Activity context, Point p) { Display display = getWindowManager().getDefaultDisplay(); width = display.getWidth(); // deprecated height = display.getHeight(); // deprecated int popupWidth =width; int popupHeight =height; // Inflate the popup_layout.xml

How to blur/dim an activity when a popup window is shown in android

限于喜欢 提交于 2020-01-02 05:46:09
问题 I use a popupwindow for displaying options in Android. I tried to dim/blur the activity when a popupwindow is active, but I did not find a solution... can anybody help me. I used the following code but it does not work for me. getWindow().addFlags(android.view.WindowManager.LayoutParams.FLAG_BLUR_BEHIND); 回答1: Use it like this: WindowManager.LayoutParams lp = dialog.getWindow().getAttributes(); lp.dimAmount=0.0f; dialog.getWindow().setAttributes(lp); dialog.getWindow().addFlags(WindowManager

QT how to detect the systray area for creating systary pop up windows

微笑、不失礼 提交于 2020-01-01 18:02:58
问题 i need to create/design QT systray popup windows , i was thinking about creating custom windows that derived from QDialog , so it could look better then the ordinary "Information,Warning,Critical styles" my question is how can i detect the position of the desktop systray ,so how could give the popup windows the look and feel of a systray popup 回答1: You might use the rectangle given by QSystemTrayIcon::geometry() to know precisely the position of the desktop systray. The geometry method gives

QT how to detect the systray area for creating systary pop up windows

血红的双手。 提交于 2020-01-01 18:02:07
问题 i need to create/design QT systray popup windows , i was thinking about creating custom windows that derived from QDialog , so it could look better then the ordinary "Information,Warning,Critical styles" my question is how can i detect the position of the desktop systray ,so how could give the popup windows the look and feel of a systray popup 回答1: You might use the rectangle given by QSystemTrayIcon::geometry() to know precisely the position of the desktop systray. The geometry method gives