dialog

How to open a modal dialog in Java?

I'm trying to display a modal dialog in front of an Applet. My current solution fetches the root frame like so: Frame getMyParent() { Container parent = getParent(); while (!(parent instanceof Frame)) { parent = ((Component)parent).getParent(); } return (Frame)parent; } And creates the dialog as follows: publ...

Creating dynamic previous next buttons in jquery UI dialog

I have searched high and low for this on this site and the web Is it possible to dynamically create previous and next buttons in a jquery dialog box? I have a list of links, and I would like to click on a link and have a dialog box open. In that dialog box would have a previous and next button that when clicked on would close the curre...

[Android] Rotate of 90 degrees a Dialog / AlertDialog created by the system ?

Does it exist a way to apply a rotation (of 90 degrees) to an AlertDialog that has been created by the system ? This could seem tricky at first sight. My application uses the camera in preview and must work in landscape AND in portrait, starting from Android 1.5. However, when the OS automatically manages the phone orientation, the pr...

How to overlay a button programmically?

What I would like to accomplish is to, at runtime, place a button in the middle of the screen, as the very top layer, overlaying anything below it. (It's not big, so it will not completely cover the screen, just whatever happens to be below it.) I looked at creating a custom dialog, however that blocks all other user input. I want all...

Help Adding onKeyListener to Progress Dialog

Hi All I am trying to fix the problem where my progress dialog box disappears when someone presses the search button. I found this posting http://stackoverflow.com/questions/2502443/prevent-progressdialog-from-being-dismissed-when-i-click-the-search-button-andro/3983628#3983628 Where they say to add an on key listener to the progress d...

CTaskDialog hyperlinks in vc++

Hi I am using CTaskDialog class in my MFC application. I am trying to customize it. In this if i want to add hyperlinks, as of now there is no specific provision for this. But to add the buttons we can use "AddCommandControl" and can handle the button. If I want to implement similar to this AddHyperlinkControl and want to handle can any ...

Dialogs order in Android

is there something like dialog's order in Android? I explain what I mean. There is a dialog builder with "OK"-Button. When user press ok, dialog will be closed. Wenn I call more than one dialogs after each other in an activity, I see first the last one, then next to last and so on. But I would like to see first the first dialog, then ...

Dialog box issue on android

Hi all, I am loading the data using http connection,when it does i am using progress dialog box. The problem is when i press the hardware back button , dialog box is removed before loading all the data,but data is showed successfully, the code for back button is i have used is, public boolean onKeyDown(int keyCode, KeyEvent event) ...

Creating and returning a value from a custom dialog box in pyqt?

I've been building a small application in pyQT and I've run into a problem. I'd like to create a modal dialog box that appears on launching the application and collects some input from the user (probably a set of checkboxes that will be populated at runtime). I'm unsure of the best way to accomplish this. Should I subclass QDialog (and i...

Android: How to get the time from a TimePicker when it is typed in

I've got a DialogPreference which implements a simple TimePicker.OnTimeChangedListener (see below). Setting the time by clicking the +/- buttons works great. But I don't know how to save the state of the timepicker when the user typed in the time directly into the textfield. It could be sufficient to access to the current textfield value...

jQuery + dialog: assigned events getting destroyed?

here's my problem: i'm using the jQuery dialog for displaying a div with some textboxes inside. that div has my own plugin code assigned like div.myPlugin(); before opening the dialog, i'm initializing that plugin like div.initPlug(); the problem: - when first opening the dialog anything is fine - when closing it and re-opening it, th...

How to get a gtkDialog's default response to trigger of the space bar as well.

I have a messageDialog set up so that its default response is gtk.RESPONSE_OK so the okay button is clicked when the user hits enter even if the okay button does not have focus. I would like to also have the space bar trigget the default_response. What is the best way to do this? This is with python 2.4 in a linux environment. Unfortuna...

Drawing chart in a dialog

Hello all, I have a conceptual question to ask: I created a custom dialog (extends Dialog) and I want to draw a chart (dynamic data, not static) in the top third of the dialog. What's the best (only?) way to approach this? A) Get a canvas to the dialog and draw to it? Seems like I need access to the dialog's draw, yes, or can I do th...

How to use the Android Intent.createChooser()?

I am trying to use the chooser so I don't have to create a selector-dialog. Maybe it is the wrong construct or widget to be using. What is happening is that the list of intents that I supply are inserted into a chooser dialog, but so are all the other applications on my device. Then if I use the back-button, the application "finishes....

How to get reference to a Button created in a custom Dialog, using a xml layout?

Hi, I have an Activity in which user can update a specific information clicking in a button near a label. This buttons than triggers a Dialog where I have some fields to get user input and a button to finish editing. My problem is that I am not able to get a reference to the button declare in the dialog specific xml layout. The button...

Change the position of a jquery dialog box after it loads

I have a jquery dialog box that loads with an image and auto resizes to the image. This is what I want. However, the box is rendered at the center position, but the image isnt fully loaded yet, there is a delay in getting the image. So when the image is loaded into the dialog box the upper left corner is centered, but the whole bottom ri...

Removing loaded jQuery AJAX element

I was working on a dialog with content loaded by AJAX, but I'm not able to remove it. A must was to have a multiple, php-supported, drag-able and close-able dialog. (.center() function present) $('a.event').click(function() { var url = this.href; var getrel = $(this).attr('rel'); var getid = $(this).attr('id'); var dialo...

Retrieving MS Word Document from Database and Saving Locally

I have used AsyncFileUpload AJAX control to upload a file to a column in a SQL Server database using LINQ to SQL. How do I retrieve the document from the database and allow the user to save to local drive using a Save As Dialog box using LINQ to SQL? This is ASP.NET web application. The DocumentFileContent database column is a Image S...

MonoTouch.Dialog's OwnerDrawnElement highlight not working

I am using MonoTouch.Dialog's OwnerDrawnElement, but it doesn't seem to allow the user to 'highlight' the cell when touching the screen. I've looked at the sample, but it doesn't show the highlighting. Any suggestions? I noticed that TweetStation doesn't seem to user OwnerDrawnElement. Should I take another approach? I need to create a...

jQuery dialog IE7 issues

I am having trouble with the width of the titlebar in IE7 only. The first dialog function when opened using the width: 'auto' the titlebar does not extend across the entire dialog window. The second function using minWidth works but is acting more like the width property and not growing in size with the content. Any ideas? Not Workin...