FAQ Database Discussion Community


how to show same Dialog in Activity and Fragment in Different situation?

dialog,android-dialogfragment,android-dialog
I am doing a sample Project where I am using Navigation Drawer with Fragments.When I click in row item1 it opens Dialog Fragment1 .In Dialog Fragment1 I have a button . My requirement is I want to open same Dialog which is triggred from navigation row item1 when button in...

Button in dialog inside p:dialog is not calling controller method

jsf,jsf-2,primefaces,controller,dialog
I've got a problem as described in the title. Small description of the problem is as following: I have button which is used to open dialog. Then, inside that dialog, there is button which opens another dialog on top of the first one. After clicking second button I want method...

Error with Linux whiptail/dialog arguments from bash variable

bash,shell,dialog,whiptail
could someone explain why the code below doesn't work? I'm going crazy trying to find out. #!/bin/bash TEST="M1 \"1-wire Interface\" ON" echo $TEST RESULT=$(dialog --title "Config Modules State" --checklist "Choose modules to activate" 20 50 1 $TEST) It prints this at the output, as expected: M1 "1-wire Interface" ON 'dialog'...

Transparent background on custom Dialog

android,background,dialog,transparency
I'm trying to get a transparent backgroud on my custon Dialog, but I can't get it done on android 4.4.4. It only works on an Android 5.1. The result I'm looking for is this: http://www.americocarelli.com.br/android_5.1.png But I get this:http://www.americocarelli.com.br/android_4.4.4.png This is my custom layout: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/dialogo_layout_root"...

Intercept dialog from and read the contents

webview,dialog,dart,google-chrome-app
I use this code to intercept a dialog from a webview but I can not see the content or interact with it: Element webview= querySelector("#webview"); Map<String,String> map=new Map(); map["src"]=urlWebView+user; webview.attributes.addAll(map); querySelector("#webview_cont").style.visibility="visible"; window.addEventListener("dialog",(Event e){ //Use window or webview returns the same result e.preventDefault(); ... //What should I do here ?? }...

MFC Dialog Controls in Ultra High Resolutions

mfc,dialog,control,spacing,high-resolution
I am having trouble with the spacing and size of dialog controls when using my application in an ultra high resolution environment. I place the controls using the following code in a for loop: GetClientRect(cRectDimen); int iHalf = cRectDimen.right / 2; int iY = cRectDimen.top; int iX = cRectDimen.left+5; int...

Get instance of JQuery UI popup

jquery-ui,dialog,instance
I am creating a JQuery UI popup this way: function ShowJQueryStandardDialog(searchTarget, title, width, height, closeFunction) { var $dialog = $('<div id="dialogDIV"><iframe id="dialogIFrame" frameborder="no" scrolling="auto" src="' + searchTarget + '" width="' + (width - 50) + 'px" height="' + (height - 50) + 'px"></iframe></div>'); $dialog.dialog( { modal: true, title: title, show:...

How to delete AutoComplete string in dialogFieldValue in my Dialog?

caching,dialog,axapta,x++,dynamics-ax-2012
I created a Dialog I have this code: dialog dialog; DialogText dialogText ; DialogButton dialogButton; DialogField dialogFieldI, dialogFieldII; str fieldDel, confirm; MyTableDelete tabledelete; dialog = new Dialog("Dialog name"); dialog.addText("Write to confirm"); dialog.addText("DELETE"); dialogFieldI = dialog.addFieldValue(extendedTypeStr(String30), fieldDel , "Insert value"); dialogFieldII = dialog.addFieldValue(extendedTypeStr(String30), confirm, "Confirm delete"); dialog.run(); confirm = dialogFieldIi.value(); fieldDel...

How can I maintain the whitespace of a command's results in a linux dialog inputbox?

bash,bluetooth,dialog
I've got a bash script file that I've been working on, that I'm trying to get to be able to list the currently available Bluetooth devices and then allow the user to choose one and connect to it. I've got all of the code to work, but the listing of...

how to correctly send CMFCMenuButton selected ID to the message map?

c++,menu,mfc,dialog
firstly let me describe what I have: scenario: CMFCMenuButton, loaded with a CMenu, in a dialog test: click on an item of the menuresult: the message map will get the ID of the CMFCMenuButton and not the ID of the menu how to get the actual menu ID clicked: use...

setTitle to AppCompatDialog not working

android,dialog,appcompat
I am trying to use new AppCompat 22.1 feature AppCompatDialog, but it shows me dialog without title, but I am using method setTitle. If I change the AppCompatDialog to Dialog everything works fine. It's a bug in AppCompatDialog ? Here is my dialog code: final AppCompatDialog dialog = new AppCompatDialog(ctx);...

MFC , CDataExchange: override the message box alerting the user to the input error

validation,input,mfc,dialog
I need to validate input of some ctrl in my dialog. I am using the DDV_.. function to handle the validation, However, the message box that CDataExchange bringing up alerting the user of the input error , is not what I need (It uses the word "integer" but my users...

EditText expands too slow inside AlertDialog on android

android,dialog,android-animation,alertdialog
Simplifying a more complex problem. I have an AlertDialog with this view dialog.xml (I might be wrong and this problem has nothing to do with AlertDialog, but Views in general): <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> // <ImageView 48dp x 48dp/> ImageView for profile photo <EditText android:layout_width="0dp" android:layout_weight="1" android:layout_height="wrap_content"...

Netbeans GUI preview is different from Runtime view

java,swing,user-interface,netbeans,dialog
I'm developing a simple Java application using NetBeans and its GUI editor. I'm stuck on creating a simple dialog: runtime it looks different from what I designed and from what is previewed in the editor. Basically, clicking on a button make my dialog appears. private void jButton1MouseReleased(java.awt.event.MouseEvent evt) { PanelDialogNuovoCliente...

SAPUI5/OPENUI5 - Routing with Dialogs

routing,dialog,sapui5,openui5
I´m currently stuck with the combination of routing and dialogs. I have a view with list elements and when I click on an element in the list I want the Detail view to be shown in a Dialog (Popup). The thing is, I also want the ID of the list...

How to compare the DialogField value between a string with a difference uppercase?

dialog,axapta,x++,dynamics-ax-2012,uppercase
I have this little question, how I can compare the dialogField.Value() with my String, I need to have a difference between uppercase . I used this code, but I haven't strictness, I have the true return in both case , upper and lower case. dialogField = dialog.addFieldValue(extendedTypeStr(String30), text); if (dialogField.value()...

How would you open a Dialog when an edit box is selected? MFC 2005

mfc,dialog,keyboard,editbox
I would like to be able to create an onscreen keyboard to popup whenever an edit field is selected. I am using MFC Visual studio 2005 (C++ based). Below is my code so far: void CTestHarnessDlg::OnEnChangeEdit3() { CKeyboard Dlg; Dlg.DoModal(); } When I run the Dialog box and click on...

Show UI dialogs using data-popup attributes

javascript,jquery,jquery-ui,dialog,jquery-ui-dialog
I am using jquery ui dialog to show more than one popup on one page, each popup will have its own ID and it will be triggered by an anchor with a data-popup="" attribute. For example, <a class="popup-button" data-popup="#popup-a">POPUP A</a> Will trigger the popup that has the ID #popup-a Below...

jquery fire a click anywhere within a dialog box

jquery,dialog
I have a Dialog Window, with a 2 by 2 table. instead of clicking on a button, i want to be able to click on any cell and it returns the value/text in an alert box. However i am unsure where i would place the following alert($(event.target).text()); into ? $("#dialog-message").dialog({...

Q: Android not accepting special characters on Toast/Dialog.

android,dialog,character,toast
Im inputing some special characters on my toast and dialog messages, and end up switching for a "?". Ive tried to follow some questions here on stack but none end up working. Check one example: Toast.makeText(Emprestimo.this, "Insira o valor do empréstimo.", Toast.LENGTH_LONG).show(); The word above "empréstimo" on the Toast message...

The angularjs dialog doesn't seem to work for me

javascript,angularjs,dialog,material
I have been trying to implement AngularJS dialog in my app and i copy everything from the demos provided in material.angularjs.org however I don't seem to be able to make it work. Could anyone see what am I missing ? This is the Javascript code: // TABLE CONTROLLS GO HERE...

Javascript: call dialog from button

javascript,button,dialog
I hope you can help me, because i'm new at javascript. I want to open a dialog by clicking on an button. When it shows up and you click "OK", there should pop-up a second dialog. http://forums.asp.net/t/1962249.aspx?Make+a+button+open+a+javascript+dialog And also on stackoverflow i saw related questions. But none of them could...

using hook on OPENFILEW dialog disables resize control

winapi,dialog,windows-xp,hook
Using this code the resulting dialog box is drawn without ability to be able to be resized by mouse: #include <windows.h> static UINT_PTR CALLBACK OFNHookProc (HWND hdlg, UINT uiMsg, WPARAM wParam, LPARAM lParam) { return 0; } int main() { OPENFILENAMEW ofn; ZeroMemory(&ofn, sizeof(ofn)); ofn.lStructSize = sizeof(OPENFILENAMEW); ofn.nMaxFile = MAX_PATH;...

Display JQuery dialog using a JS-file

jquery,sharepoint,dialog
I was able to insert my dialog. But I'm not able to display it. This is how I insert it: if ($("#dialogSendMail").length) { } else { $("#DeltaPlaceHolderUtilityContent").after("<div id='dialogSendMail' title='Enter mail body'> <label for='mailBody'>Type the text you want to display in the email:</label><p><input type='text' id='mailBody' name='mailBody'></p></div>"); } And this is how...

How to change position of an OPENFILENAME dialog in Windows?

c++,winapi,dialog
This is my attempt using a hook function to get the dialog window handle. Both SetWindowPos() and GetLastError() return correct values, but the dialog window is unaffected and shown at position 0,0. #include <windows.h> #include <iostream> static UINT_PTR CALLBACK OFNHookProc (HWND hdlg, UINT uiMsg, WPARAM wParam, LPARAM lParam) { using...

How to enable user to re-entry(or) reuse the same dialog in MFC

visual-c++,mfc,dialog
I'm currently doing a FTP download using MFC. Is a very simple program which takes 2 inputs from user and click a download button in order to download from server. Everything is fine and im able to download it from. But i realized this program can only be executed once....

Writing Another Text File based on Saved File from Tkinter

python,file,tkinter,dialog,save
I prompt the user to save a file, and I want to automatically save a file along with it. For example, let's say the user saves a text file under my program called "foo.txt", I want to automatically make a text file called "lengthfoo.txt". The word "length" before "foo", and...

How to insert a record from a Form with Dialog confirm?

forms,dialog,axapta,x++,dynamics-ax-2012
I insert with a Form records in MyTableNewRecord. In my insert Table method iI insered this code: dialog dialog; DialogText dialogText ; DialogButton dialogButton; DialogField dialogField; dialog = new Dialog("Dialog user"); dialogText = dialog.addText("Text dialog."); dialogText = dialog.addText("Click OK to continue"); dialog.run(); super(); For to insert, I use a Form....

Updating time by using static variable Android

java,android,dialog,static-members
I am using a menu option to set the time for a game. By default the time is set to 10 seconds. The user can set the time by clicking on the menu and then selecting a choice. I am using a custom view, so the method for changing the...

Using a Dialog in Metro UI

javascript,jquery,dialog,metro-ui-css
Hi I have a question about the Metro UI (http://metroui.org.ua/dialog.html) I'm using the dialog like this: <div id="TestDialog" data-role="dialog" class="Dialog"> <h1>Simple dialog</h1> <p> Dialog :: Metro UI CSS - The front-end framework for developing projects on the web in Windows Metro Style. </p> </div> <script type="text/javascript"> var x_dialog = $("#"...

E2003 Undeclared identifier: 'mtConfirmation' and 'mbOK'

delphi,compiler-errors,dialog,delphi-xe7
From what I can tell both of those are supposed to be in System.UITypes, which I'm using, but I still get the error message. How can I fix this? I've based the message dialog from the example in http://docwiki.embarcadero.com/CodeExamples/XE7/en/FileExists_(Delphi) The original code came from http://delphi.radsoft.com.au/2013/11/checking-for-an-internet-connection-on-mobile-devices-with-delphi-xe5/ unit Unit1; interface uses System.SysUtils,...

How to Block UI based on method value

jsf,primefaces,dialog,blockui
I need your help in blocking the form based on the returned value from the method UpdateDatatable that will return "Yes", if commandButton "Print" is fired. If it is fired, I need to block the UI on the close of the dialog, otherwise not to block it. Currently my code...

Is it possible to use to use a path transition on a dialog box in javafx?

java,animation,javafx,dialog
So I'm running a little test application to see if this possible and then move it to my main project. The main idea is that the dialog box come from the top of the screen to the center and waits for a response from the the user. If they click...

App crashed on listview.getSelectedItem() (ListView inside Dialog) Android

android,listview,dialog
I have a dialog screen and inside the dialog I have a listview. I want to show which item is clicked from the listview by a toast message. So I tried to display a message of the clicked item by a toast message using listview.getSelectedItem().toString() but it crashed when clicked...

How do I make a Dialog Box work inside an onClick Listener in a Fragment in Android?

java,android,dialog,onclicklistener
I am trying to build an android app and have come across a situation where I want a user to navigate between Dates by clicking Previous (Month) and Next (Month) buttons. I however do not want the user to go to a month after the current month. I would like...

DoModal Returns -1 Getlasterror says Invalid handle

c++,visual-studio-2012,mfc,dialog,windows-ce
I am using a Win32 application ,In this DoModal function returns -1 and GetlastError() returns 6(Invalid handle).I tried Deleting GDI handles to repair the GDI Exhausts,Result Fails. Additional Information: I'm using Visual Studio 2012 and this application is for Compact 2013. if(!bDeviceOpened) { bDeviceOpened=OpenDriver(); if(bDeviceOpened == 0) { AfxMessageBox(_T("Please make...

How to set Dialog text position from code?

dialog,position,axapta,x++,dynamics-ax-2012
Good day all, I have a simple Dialog started after click button, I post my code: Dialog dialog; super(); dialog = new Dialog("Dialog example"); dialog.addText(strFmt("Text to show")); dialog.addText(strfmt("SecondText to show")); dialog.run(); I will show a Dialog window loollike this : It's possible to set the position from code the Text:...

How to update value in p:dialog and display in the p:dialog

primefaces,dialog
I have a datatable, and at the last column I will have an edit action, it will trigger the dialog box. However, I found the value in the dialog box is not updated. Can anybody to help on this? My code as below. In fact the bean.currentItem.name and bean.currentItem.age should...

NSIS : How to keep input value from previous dialog after click Next/Back button?

textbox,dialog,nsis
If I change value in textbox and click Next button, then click Back button to back to the page again, I wanna keep new value that I changed it in textbox. How can I do? This is my code : AcustomPage.nsh !macro create_AcustomPage APP_NAME CUS_FULLNAME Page custom create_AcustomPage leave_AcustomPage Function...

Activity has leaked window when going to next activity

android,memory,dialog
I am trying to display a Progress Dialogue when going from one activity to a second activity. Unfortunately I keep getting this error: 05-17 17:58:30.274 29115-29115/me.tb.player E/WindowManager﹕ android.view.WindowLeaked: Activity me.tb.player.SkeletonActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{1ec8d3e2 V.E..... R......D 0,0-1026,288} that was originally added here at android.view.ViewRootImpl.<init>(ViewRootImpl.java:363) at...

Dialog error in android

android,dialog
I am not able to understand why I'm getting error saying Dialog cannot be resolved to a type import android.os.Bundle; import android.support.v4.app.DialogFragment; import android.support.v7.app.AlertDialog; public class DatePickerFragment extends DialogFragment { @Override public Dialog onCreateDialog( Bundle savedInstanceState ) { return new AlertDialog.Builder( getActivity() ).setTitle( R.string.date_picker_title ) .setPositiveButton( android.R.string.ok, null ) .create();...

PrimeFaces CommandButton is not working in Dialog

primefaces,dialog,commandbutton
I need your help in solving the issue with the CommandButton in the dialog as I am calling a method called UpdatePrint() in the action and it is not called. The jsf page code is as follow: <h:form id="Requests"> . . . <p:commandButton update=":Requests:#{hr.dialogueName}" oncomplete="PF('#{hr.certificateDialogue}').show()" icon="ui-icon-search" title="View"> <f:setPropertyActionListener value="#{hr}" target="#{hrd.selectedRequest}"/>...

Open another class via button push as a display panel

java,swing,class,dialog
Basically I'm trying to open my porttest.java class via a button push in my main program. I thought their might be a way to do it via frame.add(porttest) but that didn't work. Here is my porttest.java code. package Random; import gnu.io.*; import java.awt.Color; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import...

Linux whiptail or dialog with menu and input together

linux,dialog,whiptail
I want to use the 'whiptail' package to generate a menu box and input box simultaneously on screen. Is this possible? Or maybe with dialog? I can't find any example of this. I want something like this: Menu item 1 Menu item 2 menu item 3 if none of the...

Android ViewPager center item on screen

android,dialog,android-viewpager,fragment,center
I am trying to show a dialog over my screen. And that dialog should have ViewPager in it with FragmentPagerAdapter. Each item in adapter has width set to .7f. What is important to me is that when some item is selected it should be snapped to center of the ViewPager...

How to quote variables in a whiptail command with dynamic/conditional options?

bash,dialog,whiptail
I need to disable options in a dialog command built in a Bash script. Here is the original working script: my_backtitle="This is a test" selected_options=($(dialog \ --backtitle "$my_backtitle" \ --separate-output \ --checklist "Select your options:" 0 0 \ "option1" "description of option 1" "" \ "option2" "description of option 2"...

Primefaces Dialog is not resetting selected values on second time view

primefaces,dialog
I am having a dataTable in my xhtml that will show the records and at the last column in the dataTable, I am having a commandButton that will display a dialog that has a selectOneMenu which the user can select the date and based on the date selection, the values...

How to open new activity within a dialog arg

java,android,android-listview,dialog
How Can I open my SettingsActivty when I click on the "Advanced" section in my list view dialog? here is my code public void show (){ ListView listView = new ListView(this); listView.setAdapter(new ArrayAdapter<String>(this, R.layout.dialog_list, new String[]{"Themes", "Advanced", "Help"})); listView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,...

Cannot get text in Edittext in dialog

android,dialog,android-edittext
I write a method that show a dialog with a EditText and button and when button pressed My app should be get the value of EditText but for ever EditText is empty, Why? private void lookupNumber(){ final Dialog dialog = new Dialog(MainActivity.this); dialog.getWindow().requestFeature(Window.FEATURE_NO_TITLE); dialog.setContentView(R.layout.dialognumber); final EditText eNumber=(EditText)findViewById(R.id.getNumber); Button btnOk =...

How fix Non-static method

java,android,dialog
this is my code in android studio and I can't fix this

Unity dialogue import

c#,unity3d,dialog,dialogue,unity3d-gui
I'm trying to import my dialog into Unity 5. Is there some kind of default Unity function to do that? For example, importing all the dialogue from an outside source like Word, or Notepad++, and assigning it directly to all the characters interactions. Currently there is a LOT of dialogue....

Cannot position a dialog at the center of the view

android,dialog,position,center
I want to put a custom dialog at the center point of a specific layout. However the dialog does not go to the center. actually i tried various ways however now i am stuck... such a headache. I tried like the code below. showCustomDialog(){ View view = (View) getLayoutInflater().inflate(R.layout.abc, null);...

JavaFx Dialogs cannot be resolved

java,eclipse,javafx,dialog
I am kind of confused as i am using Eclipse Luna in my kind of big project, and i was using JavaFX fine, for now. I am trying to implement a Process Dialog as shown in here And here is a tricky part, my eclipse does not recognize nor...

Updating a shown Dialog

android,dialog
I created a Dialog, using a custom layout: public class WaitDialog extends DialogFragment { [..] @SuppressLint("InflateParams") @Override public Dialog onCreateDialog(Bundle savedInstanceState) { AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); LayoutInflater inflater = getActivity().getLayoutInflater(); View viewDlg = inflater.inflate(R.layout.dialog_finish, null); tvStatusMain = (TextView) viewDlg.findViewById(R.id.tvStatusMain); [..] } public void setMessage(String message) { tvStatusMain.setText(message); } }...

ImageView setOnClickListener in a dialog

android,dialog,imageview,onclicklistener
I create a custom dialog box with this method: public Dialog onCreateDialog() { AlertDialog.Builder builder = new AlertDialog.Builder(this); LayoutInflater inflater = this.getLayoutInflater(); builder.setView(inflater.inflate(R.layout.dialog_rate, null)) .setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int id) { SharedPreferences.Editor settingsEditor = settings.edit(); settingsEditor.putBoolean("rate",false); settingsEditor.apply(); Intent intent = new Intent();...

Custom share dialog,not working for some apps

android,android-intent,dialog,share,evernote
I have implemented a custom share dialog,in my android app.I am sharing images,interesting enough it does not work for Evernote application.I can share with Evernote by the default way.But it does not work with this code.I have experienced this only for the Evernote application. This is my code : public...

jquery putting json in a dialog

jquery,json,parsing,dialog,alert
I have this piece of code inside a jQuery focusout : $.ajax({ type : 'GET', data : 'auteur='+auteurExiste, url : 'existeAuteur.php', success: function(data) { jQuery.each(data, function(index,item) { alert ("bla bla bla "+item) }); } }); The json response from existeAuteur.php is : 0:"Le droit privé" 1:"Le droit foncier" This of...

How to add checkBox in Dialog and get value?

checkbox,dialog,axapta,x++,dynamics-ax-2012
I want to add a CheckBox in my Dialog. I used this code: Dialog dialog; DialogField dialogField; NoYesId checkValue; ; dialog = new Dialog("New dialog with checkBox"); dialogField = dialog.addFieldValue(identifierStr(NoYes) , checkValue); checkValue= dialogField.value(); dialog.run(); info(strfmt("Value %1" , checkValue)); So, in Debug I see the value of the variable (checkValue)...

Keyboard doesn't show on focus in alert dialog

android,dialog,android-edittext,focus,alert
I have a dialog which I extend from custom PopupDialog. The problem is that the keyboard won't appear on focus EditText field . I've tried with clearFlags and other things, but the problem is still there. public class PopupDialog<RESULT> extends AlertDialog { private final View mContentView; private final AppActivity mActivity;...

Dialog getWidth and getHeight return no integers no matter what

java,android,dialog,paint
I have implemented everything I can find here on StackOverflow. Here is my code: MainActivity: statusDialog.getWindow().setAttributes(lp); statusDialog.show(); final LinearLayout drawbar = (LinearLayout) statusDialog.findViewById(R.id.drawbar); int barWidth = drawbar.getWidth(); int barHeight = drawbar.getHeight(); DrawBar(drawbar); } public void DrawBar(View v){ LinearLayout statusDialog = (LinearLayout) v; Paint paint = new Paint(); paint.setColor(Color.parseColor("#CD5C5C")); Bitmap bg...

How to change font size of number dialog android

android,dialog
My title for my number dialog I made, which is just a normal dialog is too long, and I was wondering how I'd make the font size of it smaller. As I didn't have the option to user a text view. public void numberPickerDialog() { final Dialog d = new...

jQuery Mobile code producing more and more lines

javascript,jquery,html,dialog
Hello there overflowers, I have some strage error in my jQuery Mobile code and I can't figure out what the problem is. Here is the code .on("pageshow", "#dlg1", function(){ $("#buttonAdd") .on("click", function(){ var n = $("input[id^=modDescription]").length; var addThis = ""; addThis = '<tr class="modRow"><td><input type="text" data-clear-btn="true" name="modDescription' + n +...

Create jDialog Swing with a message of error with image

java,swing,dialog
I'm new of Java and I want to do a jDialog that is opening when I push a button in the main JFrame and show a message of error in this way: I can't put the image in another way in NetBeans? I create in the source package a directory...

How to avoid user to click outside popup Dialog window using Qt and Python?

qt,user-interface,python-3.x,dialog,qt-creator
I created a Dialog window using Qt Creator and Python. I would like that Window stays on the top of my Gui AND avoid users to click outside that Dialog Until this dialog was closed.

Can't make bootstrap dialog modeless

twitter-bootstrap-3,dialog,modeless
I'm trying to create a dialog using Bootstrap 3.2.0. I have them working fine except for those that I want to be modeless. I've set the data-backdrop attribute to false and I've tried some of the suggestions I've found online such as detaching the focus event: $(document).off("focusin.bs.modal"); and/or removing the...

App crashes on screen rotation when android.support.v7.app.AlertDialog is displayed and screen is rotated

android,dialog
I have read all the related questions to this problem and tried everything (including using setRetainInstance) and have not managed to find anything that works. I pared my dialogFragment to the bone (see below) and I still have the problem. Having read a blog elsewhere in which the author states...

Is it ok to use DialogFragment in fullscreen to simulate a new activity?

android,android-fragments,dialog
I am trying to know if it is ok to manage the "navigation" of my app with DialogFragments all the time, putting them in fullscreen as if they were Activities. Thank you very much

Strange behaviour with GetOpenFileName dialog and opencv

c++,windows,winforms,opencv,dialog
I'm trying to use the open file dialog to allow the user of my program to select an image which will then be processed using opencv. This is my first attempt at any gui or windows programming so bare with me. I have a function in which i open the...

How setText to custom dialog from one class in others?

java,android,nullpointerexception,dialog
I have created a dialog class that i would like to use in several other classes and depending in what class they should display different info. I have no problem displaying the dialog itself with working button and an already set text from the xml. But when i try to...

Xpages Extention library dialog box position

dialog,xpages,xpages-extlib
I am using Dialog control from extention library in xpages.The issue is regarding the center position of Dialog box. when I click on link,dialog box appears,but on to the right bottom of the page not in center,I have tried in Chrome,Firefox and Internet Explorer too.Same issue in all the browser....

Dorbell Integration Error - The constructor is undefined

java,android,eclipse,dialog
I want to integrate Doorbell.io into my app, but I get error which I can`t fix it myself. In eclipse I get this error: The constructor Doorbell(new DialogInterface.OnClickListener(){}, int, String) is undefined This is my code. Anyone can figure out what`s going wrong here? builder.setNegativeButton(R.string.rta_dialog_no, new OnClickListener() { @Override public...

How to create dialog box on the fly?

javascript,jquery,jquery-ui,dialog
I need to be able to create dialog box with giving ID value on the fly then perform .dialog('open'); and .dialog('close'); functions.. for details on why I need this, I have a problem description in another question My thought is to append a new DIV to ICWSDialogs then use the...

How can I correctly close this JQuery dialog?

javascript,jquery,html,dialog,jquery-dialog
I am absolutly new in JavaScript and JQuery and I have the following problem. Into a page I have this dialog: <div id="dialogReject" title=""> <table style="visibility: hidden;" id="rifiutaTable" border="0" class="standard-table-cls" style="width: 100%!important"> <tbody style="background-color: #ffffff;"> <tr> <td style="font: 16px Verdana,Geneva,Arial,Helvetica,sans-serif !important">Inserire note di rifiuto</td> </tr> <tr> <td> <textarea style="visibility: hidden;"...

how to shake a login dialog in javaFX/8

java,login,dialog,javafx-8
How do I make my javaFX/8 dialog box shake more elegantly whenever a user input a wrong login name/password pair?. Since the dialog in java8u40 does NOT have one, I set out to make one it myself. However, it doesn't look good enough. What's wrong with it? Can someone help?...

How to refresh the page after closing p:dialog

jsf,primefaces,dialog,page-refresh
I've the below dialog: <h:form id="r1"> <p:commandButton value="Basic" type="button" onclick="PF('dlg1').show();" /> <p:dialog header="Basic Dialog" widgetVar="dlg1"> <h:outputText id="test" value="Welcome to PrimeFaces" /> </p:dialog> </h:form> How can I refresh the JSF page after closing the dialog?...

How to delete my contact using a dialog?

android,dialog,alert,contacts,android-contacts
What I'm trying here is I want to long press the number that I select and it will pop-up an alert dialog that ask me to delete. If I press Ok it will be deleted. I'm new here, I'm new in android I just want it know if it's possible...

keep aspect ratio of .ui-dialog-content when resizing

jquery,jquery-ui,dialog,aspect-ratio,jquery-ui-resizable
I have an image within the dialog. when I resize the dialog, the aspectRation is working on the complete dialog, not only on the image, when I resize it. $("#videoDialog").dialog({ resizable: false, autoOpen: true, width: 300 }).parent().resizable({ aspectRatio: true, minWidth: 300 }); The more I resize the dialog, the more...

Put a string into a dialog from a slected list item from a expandable list child

android,dialog,expandablelistview
I've been trying to pull details of an item selected, from my strings.xml. To a dialog pop up when i select an item from my expandable list view (child). Sadly with little success. This is the expandable list fragment from my NavigationDrawerFragment. everything works great. the dialog pulls up with...

How to include a pop-up dialog box in subflow

jsf,dialog,spring-webflow
Is there a way to call a dialog box inside subflow state so that the background(current flow) becomes disabled? So that when the subflow ends (after closing the pop-up dialog box), it can then update the parent flow (current page). I am trying to achieve something like the picture below...

JavaFX confusing event handling on System Exit

javafx,dialog,event-handling,alert
The code bellow generates an Alert Dialog with two buttons, Ok and Cancel; and it also works as expected: if I click Ok, the system exits, otherwise the dialogs vanishes. The strange thing is: if I ommit the else block handling the event, the platform will always exit, not considering...

wxPython wx.Frame with wx.Dialog effect

dialog,wxpython,frame
I want to have a wx.Frame that has the effect that the wx.Dialog has, that you cant unfocus it until it closes itself, makes it above all other. I need to use wx.Frame and not wx.Dialog because when using wx.Dialog and calling the dialog.ShowModal() it doesn't continue the code after...

how to code external onclick dojo dialog

dojo,dialog,buttonclick
How does one code to use an external js function for onclick handler in a button in an dialog with the ability to pass values from dijit.Dialog elements or must it be coded entirely inline?

Randomly reposition jQuery UI dialog (easter egg)

javascript,jquery,jquery-ui,dialog,jquery-ui-dialog
I am currently implementing an easter egg feature in my application. Whenever the user hovers over a jQuery UI close button, the dialog div should randomly reposition (so the user can't close it). Here is what i tried so far: $('.ui-icon-closethick').hover(function() { console.log("hover"); $('#trollDialog').dialog('option', 'position', [randomX, randomY] ); }); Unfortunately...

Static dialog with TextView

java,android,eclipse,dialog
what`s wrong with this because I cant compile to apk. Error is Cannot use this in a static context but if I change this to context app freeze when dialog must appear. public static void mydialog(final Context context) { AlertDialog.Builder builder = new AlertDialog.Builder(context); TextView myMsg = new TextView(this); myMsg.setText("Central");...

Libgdx - How to make the dialog fade but not the whole stage?

dialog,libgdx,fadein,stage
When I show a Dialog with someDialog.show(someStage); The dialog show with default FadeIn action. And the stage fade in too. So it make my background fade along with the stage. How can I prevent this to happen? Edit: Here my example code: In Screen show method: Texture bg = new...

Posting Variables from jQueryUI Dialog to PHP with AJAX

javascript,php,ajax,jquery-ui,dialog
I am trying to get the Inputs from Input Text-Fields in an Dialog window to use them for a SQL query. My Problem is that i cant use the array in PHP. Im getting no error or sucess message. In the Network log of Firefox i can see the Post...

Adding a JTextField into a JOptionPane: ShowOptionDialog

java,dialog,jtextfield,joptionpane
I was wondering if it is possible to add a JTextField to a ShowOptionDialog box. int optionChosen = JOptionPane.showOptionDialog(finishPayInput, dialogPanel, "The Title", JOptionPane.NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options , options[0]); When I run the program, the dialog box shows, but the JTextField doesn't display....

Get notification when the application becomes active / inactive

c++,mfc,dialog
I have a dialog based MFC application and I want to get notified when the complete application becomes active or inactive. When the user switches to another application and comes back to my application I need to execute some code. How can I do this? I already tried OnActivate but...

QInputDialog and QMessageBox

c++,qt,dialog,messagebox,qdate
I'm doing some preparation for an exam using Qt framework and I would like to know how to use QInputDialog and QMessageBox in a basic way (my exams are hand written coding) The Qt API is really confusing to understand when it comes to using and it was fine for...

Dialog close remembers all data

jquery,dialog
Im using a jQuery dialog i put a trigger on the close section whenever it is closed it must return the data. But now this function is remembering old data and put the old data also in console.log. How can i make it that the old data will be forgotten...

p:dataTable not showing updated records from database on Dialog close

ajax,jsf,primefaces,datatable,dialog
I need your help in refreshing the dataTable component on closing the Dialog. I tried many ways to refresh the dataTable, but it is not retrieving the updated record, unless I have refreshed the full page by clicking on the "Go" button which is next to the URL in the...

MFC click and move/drag dialog window

c++,flash,mfc,dialog
I am currently working on finishing some code handed off to me. It was written in MFC in Visual Studio 2005 years ago, was put on hold, and now is brought to me. While I know C++, I have spent the last ~2 months studying the code and learning MFC...

Using jQuery Dialog

php,jquery,dialog
I have a HTML table and I get data for each cell from database.Some cells have an edit icon, so when the user clicks on it, he should see a pop up dialog. In this dialog there should be a drop down menu with 3 options.And after the user selects...

How to use datepicker in dynamically created jQuery UI dialog?

javascript,jquery,jquery-ui,datepicker,dialog
I have trouble to active the datepicker() in a dynamically created jQuery UI dialog(): index.html $(document).ready(function() { var $loading = $('<img src="./images/loading.gif" alt="loading">'); $('.page-popup').each(function() { var $dialog = $('<div></div>') .append($loading.clone()); var $link = $(this).one('click', function() { $dialog .load($link.attr('href')) .dialog({ title: $link.attr('title'), width: 600, height: 300 }); $link.click(function() { $dialog.dialog('open'); return...

Dismissing the dialog by outside touch event is not working

android,dialog,window,android-alertdialog
I have an utils class which vll return a dialog to the activity in my application. In that i need to provide the user to dismiss the dialog on outside click.So here i used like this lDialog.setCancelable( true ); lDialog.setCanceledOnTouchOutside( true ); I refereed some of these links Here &...

Creating a custom MessageBox class for MFC

c++,visual-c++,mfc,dialog
I'm trying to create a Modeless Messagebox class in MFC 6.0. The end result should look pretty similar to this: I'm trying to add an icon with the following, but it doesn't seem to work. HICON hIcon = LoadIcon(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDI_ERROR)); SetIcon(hIcon, FALSE); Also, is there a way to set the...

VideoView Completion Listener inside a dialog box in Android

android,dialog,videoview
I want to play a video file in videoview which is displayed inside a dialog and on completion the dialog box should be closed . I read about doing it through media controller so I have the following: final Dialog dialog = new Dialog(MyActivity.this); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.setContentView(R.layout.MyCustomLayoutWithVideoView); dialog.show(); WindowManager.LayoutParams lp =...

VSTO Outlook 2013 Addin Quit

c#,dialog,vsto,outlook-addin
I have a VSTO addin that displays a a dialog box with buttons yes no and cancel. I want the form to close anytime cancel or the X are clicked. I also want the application to quit when the form is closed. Here is my code: var frm = new...

Integer in place of Ids and Layouts

android,dialog
I have decompiled an apk for java code and in it I get these Integer values in the place of R.id and R.layouts. Can you explain why did it happen? protected void onCreate(Bundle paramBundle) { super.onCreate(paramBundle); setContentView(2130903041); this.b1 = ((Button)findViewById(2131230721)); this.b2 = ((Button)findViewById(2131230722)); this.b1.setOnClickListener(new View.OnClickListener() { public void onClick(View paramAnonymousView)...

Javafx: Close alert box (or, any dialog box) programatically

javafx,dialog
I have a JavaFx application in which I display an alert box using: alert = new Alert(AlertType.CONFIRMATION); alert.setTitle("Title"); alert.setHeaderText("Some Text"); alert.setContentText("Choose your option."); buttonTypeOne = new ButtonType("Yes"); buttonTypeCancel = new ButtonType("No", ButtonData.CANCEL_CLOSE); alert.getButtonTypes().setAll(buttonTypeOne, buttonTypeCancel); Optional<ButtonType> result = alert.showAndWait(); Because the alert executesshowAndWait, so it will be displayed till the user...