dialog

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

Is it possible to use unicode characters in a Win32 resource file?

。_饼干妹妹 提交于 2020-01-02 09:25:52
问题 I have a Win32 program where the main window is a dialog box, so I can create all the controls using the resource.rc file. I'm stuck at creating a button using a unicode character though. It works with using the CreateWindowEx() function, but not in the resource file. Why is that? I've tried the following lines of code in my resource file: #include <wchar.h> // tried with and without this header file // also tried defining UNICODE but i got an error saying it was already defined CONTROL "

How to get data out of a general-purpose dialog class

只愿长相守 提交于 2020-01-02 08:42:05
问题 I have decided that I wanted to create some custom dialog classes that could be generically used by different Activities in different situations. To be specific, I created a dialog that contains a single EditText box and a title like this: public class EditTextDialogFragment extends DialogFragment { // Factory method to create a new EditTextDialogFragment public static EditTextDialogFragment newInstance( int title, int defaultText ) { EditTextDialogFragment frag = new EditTextDialogFragment(

How to get data out of a general-purpose dialog class

人盡茶涼 提交于 2020-01-02 08:41:03
问题 I have decided that I wanted to create some custom dialog classes that could be generically used by different Activities in different situations. To be specific, I created a dialog that contains a single EditText box and a title like this: public class EditTextDialogFragment extends DialogFragment { // Factory method to create a new EditTextDialogFragment public static EditTextDialogFragment newInstance( int title, int defaultText ) { EditTextDialogFragment frag = new EditTextDialogFragment(

Dojo Dijit Dialog relative position. is it possible?

放肆的年华 提交于 2020-01-02 05:30:32
问题 I want to position Dojo's Dijit Dialog relative to one of my html element. is it Possible? If yes. How? currently it always shows dialog in middle of viewport. Can any one help me regarding the matter? Thanks. amar4kintu 回答1: Another way that I do this (not great because I override a private method but it gives me the flexibility I want): var d = new Dialog({ title:"Your Dialog", _position:function(){ if(this.refNode){ p = Geo.position(this.refNode); Style.set(this.domNode,{left:p.x + "px",

Dialog goes up when softkeyboard is shown

淺唱寂寞╮ 提交于 2020-01-02 04:11:15
问题 I have a class that extends Dialog . In that Dialog I have an EditText and a ListView . I can bring soft keyboard up when that dialog is shown. But my problem is can we make dialog not to go up when soft keyboard is shown? I tried to change softInputMode in layout params to adjust resize but it's not working. My Dialog uses x and y position, when soft keyboard is shown and dialog goes up, my dialog is not in the position I want. 回答1: Try to do this: dialog.getWindow().setSoftInputMode

passing parameters to jquery ui dialog

穿精又带淫゛_ 提交于 2020-01-02 04:07:09
问题 I use .data like this to pass the id of the textbox that calls the dialog $("#<%=txtDirProprio.ClientID%>").focus(function() { $("#<%=dialog.ClientID%>").dialog( "open" ).data("id","#<%=txtDirProprio.ClientID%>"); return false; }); here is the code for the dialog $("#<%=dialog.ClientID%>").dialog({ autoOpen: false, show: "blind", hide: "explode", width: 800, height:200, modal: true, buttons: { "Ajouter": function() { $( this ).dialog( "close" ); StringBuilderDir($( this ).data("id")); },

android open dialogue activity without opening main activity behind it

青春壹個敷衍的年華 提交于 2020-01-02 03:36:06
问题 Im writing a program that offers a quick reply dialog upon receipt of an SMS. However, I am getting an unexpected result. When I receieve an SMS, the appropriate dialog activity comes up displaying the correct phone number and message, however there is a second activity behind it that is the 'default' activity in my program (it is what opens when i launch my application) I do not want this second activity to come up. The quick reply activity should come up by itself over top of whatever the

PrimeFaces with big dialogs - how to do this correct? [closed]

家住魔仙堡 提交于 2020-01-02 01:23:59
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . How to use the PrimeFaces big dialogs in correct way? The dialogs in HTML world were first thought to be used only for messages and