dialog

how to i edit contents of TextViews in Android Dialogs?

i want to display a dialog in my android application where certain TextViews in the layout need to have content set during runtime. while showing the dialog itself is no problem at all, accessing the TextViews via TextView.setText(String) crashes the application. this is what i got so far: dialog = new Dialog(this); dialog.setContent...

How would I suppress the print dialog in this example?

private void printCard() { PrinterJob printjob = PrinterJob.getPrinterJob(); printjob.setJobName("Label"); Printable printable = new Printable() { public int print(Graphics pg, PageFormat pf, int pageNum) { if (pageNum > 0) { return Printa...

Calling android dialog without it fading the backgorund

I have this nice dialog view I set my UserInputDialog class to: <LinearLayout android:id="@+id/LinearLayout01" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android"&gt; <TextView android:id="...

link in embedded HTML in Java dialogs

I have created a Java dialog which uses embedded HTML to display a message. The message should contain a link that, when clicked, it should fire an event (launch another dialog). I can't figure out how to do it. Is this really possible? Here is the code: message = new JLabel("<html>You have selected <i>"+registry_name+" "+ registry_ver...

JQuery ui dialog css problem under FF

Hello ! I don't 'speak' english well, pls forgive it to me. I've a serious problem, soon I'm going to crazy... :-) I got a job : There is a website, that is contains some ExtJ functions. I have to change these to JQuery functions. I'm started to change dialogs. Under IE8 / IE7 it works fine, but under FF 3.5.10 it's not perfect. The...

How can I transfer information to another form without using static forms?

Dear reader, I have a Windows form that's generated using code (including buttons and what not). On it, amongst other things, there is a text box and a button. Clicking the button opens a new Windows form which resembles an Outlook contact list. It's basically a data grid view with a few options for filtering. The idea is that the user ...

How can I change the background of Android alert dialogs?

Hello, I use the AlertDialog class in my application. By default, these alert dialogs have a transparent background. I'm trying to use an opaque background instead, very unsuccessfully. These are my styles: <style name="MyOpaqueActivity" parent="@android:style/Theme.Dialog"> <item name="android:windowBackground">@drawable/my_backgr...

Android: Progress Dialog spinner not spinning.

This seems to be an Android-wide problem, which you can see in API demos under Views -> Progress Bar -> Dialogs. Basically, if you show a progress dialog, it works as expected the first time around. If you dismiss it and show it again (without destroying the activity or anything like that), the spinning image stops spinning. In the API ...

What kind of API should I use to elevate user privilege to super-user in a Mac OS X?

I want to elevate my app's privilege to super-user. Installer app supports this by displaying this dialog. How can I show this dialog to elevate privilege? PS. I'm making a kind of packet sniffer application on Mac OS X. I'm using pcap lib. (which is part of tcpdump) ...

jQuery autocomplete only working once in dialog.

I have this test code that works perfectly except the autocomplete stops working the second time the dialog is opened. I need to open the dialog this way using html because i want it to open really fast, and this was the best way. Why does autocomplete stop working the second time? var $container = $('#container'), $input = $contain...

Qt - Esc should not close the dialog.

How to make Esc key to minimize a dialog? By default it closes. Should I process KeyEvent or there is a better way? ...

How to cancel jQuery UI dialog open?

I have the following: container.dialog().bind('dialogopen', function(event, ui) { ... if (someCondition) { $(this).dialog('close'); // the dialog is not closed! } } How I should make it work? Unfortunately there is no 'beforeopen' event to be hooked. ...

jQuery looping through open dialogs to get/update position of each

I am trying to make the jQuery dialogs stay in their position relative to the window size, so for instance: if the original viewport width is 900px and there are 2 dialogs, one at 100,100 and another at 450,200 when the window is resized to say 1200px the first dialog would be 400,100 and the second at 750,200 I currently have this hand...

Android Prompt Box

I am new to writing Android Applications, and I need to be able to implement the following functionality. When a user clicks a specific button, I want a customized "prompt" box to appear, containing several fields (a textfield, a password field, and a checkbox field). I would also be nice if I could add an image inside this box. How wou...

ASP.NET Jquery C# MessageBox.Show dialog uh...issue..

I am maintaining an ASP.NET site, and I was attempting to get the dialogs looking better using jQuery. The web application has a C# class called MessageBox which allows messages to be shown to the client from the server side.... essentially in the C# on an aspx codebehind if some logic 'does not compute', you can just MessageBox.Show('yo...

JQuery + Dialog Open + Timeout

I have a dialog window in my JSP page and its implemented using jQuery. If my server is timed-out and I click on a button to open the dialog window, my login-page is shown inside the dialog window. I want to actually close the dialog window and redirect to login page. How can I achieve this? ...

How to check if dialog is displayed or display multiple dialogs of the same type?

I'm managing dialogs by showDialog/dismissDialog/removeDialog. I want to: Display several dialogs in kind of a stack: a) First dialog is shown using showDialog(DIALOG_TYPE) b) Next dialogs are shown on top of the existing dialog Now I'm only able to display first dialog using showDialog and then next dialogs are ignored. Display ...

jQuery ready function being called twice in a dialog

I am building a jQuery dialog with tabs in a PHP script. The script uses the 'include' directive inside of a loop, iterating over the tabs and including the other scripts. Each of the included files has the data for the tab and a <script> tag with a jQuery document.ready() function in it. Without the loop, it essentially does this: <...

problem with <p:dialog> and facelets

hi all i'm facing a litte problem with primefaces and facelets here's the problem: i got a template file, that will be my base for all my screens. <p:growl id="cadastroMessages" /> <p:panel header="#{header}"> <h:form id="#{formId}"> <h:panelGrid columns="4"> <p:commandButton value="#{msg.novo}" action="#{ma...

Is it possible to create a GetOpenFileName dialog in a fullscreen app?

I have a fullscreen application wrtten in C++ and would like to open a dialog window so the user can select a file to be opened without the app breaking out of fullscreen mode. On Windows, to run in fullscreen mode, I call ChangeDisplaySettings(&settings, CDS_FULLSCREEN). (Technically, I am using SDL, but this is the call it uses.) To ...