dialog

Access variables inside JQuery dialog

天大地大妈咪最大 提交于 2019-12-13 18:23:42
问题 I have a user ID in viewBag I want to access the ViewBag inside my dialog box <script> $(function () { $("#dialog").dialog({ autoOpen: false, modal: true, width: 339, overlay: { backgroundColor: 'red', opacity: 0.5 }, show: { effect: "blind", duration: 500 }, hide: { effect: "explode", duration: 700 } }); }); function OpenDialog() { $('#dialog').dialog("open"); } </script> <div id="open" onclick="OpenDialog();">Click To Open</div> @ViewBag.UserID <div id="dialog"> <table> <tr> <td>User ID</td

jQuery UI Dialog - Won't open the first time

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 18:10:57
问题 I'm using the jQuery UI Dialog as a confirm box, when you click a link the dialog will open with the question and two buttons. But I've got some load problems with the dialog. When I visit the page for the first time, the dialog won't open. When I press F5 and try it again, it works fine. This is my code: <script type="text/javascript"> $(document).ready(function() { var url; $( "#dialog" ).dialog( { autoOpen: false, resizable: false, modal: true, buttons: { "Yes": function() { $(this).dialog

android Async - Update Dialog Message in loop

元气小坏坏 提交于 2019-12-13 17:50:13
问题 I am trying to update the message in my alert dialog. I want the dialog show the updated percent of graph completion. Please wait... The graphs are loading ... 0% completed I figured out how to get the percent of each loop iteration, I am having a hard time updating the dialog to the correct percent. Thanks in advance!!!! //my xml textview object <TextView android:id="@+id/percentloaded" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="The graphs are

On button click open wxpython TextEntryDialog and get multiple input from user

时光毁灭记忆、已成空白 提交于 2019-12-13 16:32:29
问题 I want to open a TextEntryDialog, when user clicks the button. So if i have a button in the parent frame which i am going to bind this way: self.Bind(wx.EVT_BUTTON, self.OnAddNew, self.add_new_btn) Now i have to open a TextEntryDialog when user clicks the button add_new. I want to make textentrydialog somewthing like this Python, Using wxPython to get multiple input from user How can i do that? Do i need to just paste that code in ` def OnAddNew(self, event): Here is the pastebin link to my

New dialog in WiX, clicking Back skips the dialog

你说的曾经没有我的故事 提交于 2019-12-13 16:26:07
问题 I'm newbie in WiX and trying to customize dialog queue by adding the new one. The new dialog's name is ServerChoice and the flow is: SetupTypeDlg <-> Full or Typical <-> ServerChoice <-> VerifyReadyDlg or SetupTypeDlg <-> Custom <-> CustomizeDlg <-> ServerChoice <-> VerifyReadyDlg The only problem is in the first case at VerifyReadyDlg. 'Back' takes me to SetupTypeDlg and skips ServerChoice although in the second flow it works as required. Source: <UI> <DialogRef Id="ServerChoice" /> <Publish

Passing Data between VB.NET forms

人走茶凉 提交于 2019-12-13 16:25:37
问题 I have a form that has a button, when clicked it pops up a Dialog Form. Within this dialog form the user needs to select some data and when the user is finished they click the OK button. Once they click the OK button it needs to return an integer back to the previous form. I created a Dialog Form and tried calling it via the code below: Dim intResult as Integer = frmData.ShowDialog() Debug.Writeline(intResult) However, it seems I can only return DialogResults (Abort, Cancel, Ignore...) I was

Scale down (or crop) dialog background in Android

这一生的挚爱 提交于 2019-12-13 16:00:17
问题 I have a high res image (let's say 1900x1200), which I want to use as background for my dialog. It is created Dialog dialog = new Dialog(this); dialog.setContentView(R.layout.dialog); Dialog layout: <LinearLayout android:id="@+id/dialog" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" > However, if I use this image, the Dialog (layout) is expanded to cover the image (or reach the full-screen, whichever is smaller). If I make the image

Android: Progress Dialog change ProgressDialog.setMessage() while loading

泄露秘密 提交于 2019-12-13 15:25:15
问题 I was hoping someone could help me figure out how to change the setmessage dialog in a progress dialog with just a dummy timer that cycles through either an array of strings or any other way. For example While its loading it could say Loading... -> Building... -> Rendering... -> ect. on like a 1/2 sec timer (this is just for me play with it I can adapt it use real-time updating once I figure out how to change the dialog.) I've been using this tutorial for the progress thread minus the

Save/Open Common Dialog boxes in win32 without MFC

被刻印的时光 ゝ 提交于 2019-12-13 14:40:32
问题 How do you create the deafault Save/Open dialog boxes using pure unmanaged Win32 API ? Following the guide here, the following code is executed when WM_CREATE message is handled in the message loop of the main window: Ive included <Commdlg.h> also. OPENFILENAMEA ofn; char Buffer[300]; fill(Buffer, Buffer + 300, '\0'); ofn.lStructSize = sizeof(OPENFILENAMEA); ofn.hwndOwner = hWnd; ofn.lpstrFile = Buffer; ofn.nMaxFile = 300; ofn.Flags = OFN_EXPLORER; ofn.lpstrFilter = NULL; ofn

How to show a standard windows data sources (ODBC) dialog

混江龙づ霸主 提交于 2019-12-13 14:24:28
问题 Is there any simple way to display a standard windows data sources dialog from a winforms application? I'd like to show it to a user and pick up a system dsn or create a new one and return a datasource name. I haven't found any references to an existing wrappers in .net so I suppose I can only use a win API for that. Any existing solution or a snippet of code would be appreciated. 回答1: It seems that it is not possible to get the selected data source name from this dialog. Here is the winapi