dialog

Folder Browser Dialog from remote machine perspective like the one SSMS uses

雨燕双飞 提交于 2019-12-24 03:02:03
问题 I'm creating a maintenance tool and I need to let the user to select a file location for new databases. I would use the FolderBrowserDialog except that I want to show the user the directory structure from the point of view of the machine that SQL Server is actually on rather than the client the tool is being run from. I know SSMS does this whenever you are selecting backup locations, so I'm wondering if the dialog it uses is available or if there's a way to make the FolderBrowserDialog behave

Facebook Error 191 on canvas app using FB.ui() for the 'feed' dialog (worked before, stopped working last week)

我只是一个虾纸丫 提交于 2019-12-24 02:56:28
问题 I'm having a sudden problem with FB.ui() for showing a feed dialog for a user to post content from my canvas app onto their facebook feed. This was working up until about a week ago, and we haven't deployed any new code to this. FB.ui({ "method":"feed", "name":"Your Horoscope for Today", "link":"http://apps.facebook.com/dhbdayscopetest/", "app_id":"213524052014025", "picture":"http://iota.tarot.com/fb/bday/images/signs/capricorn.png", "caption":"Capricorn", "description":"The time for

Issue when using Scrollview inside Dialog

纵然是瞬间 提交于 2019-12-24 02:23:16
问题 I am inflating a layout inside a dialog, which consist of a scrollview but the layout is not scrolling. I have referred so many questions from stackoverflow but then also its not working. My layout.xml is given below: <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="match_parent" android:layout_margin="5dp" android:background="@color/White" > <LinearLayout android:layout

Can JQuery UI Dialog remember its position between opening and closing

ⅰ亾dé卋堺 提交于 2019-12-24 01:58:21
问题 I have a JQuery dialog that I dynamically open and close. Everything is working fine except the position of the dialog is not remembered after it is closed and then reopened. The size is maintained but the position is not. I have tried hooking into the 'Open' event but it appears that the position is being reset by JQuery UI after I manually reposition the element. Is maintaining the size of the dialog possible? I certainly think it should be. 回答1: You could use the jQuery UI Dialog

全局性Dialog(以及遇到的坑)

社会主义新天地 提交于 2019-12-24 01:56:56
完善后的全局性dialog代码: 添加权限: <!--动作管理覆盖权限--> < uses-permission android: name = " android.permission.ACTION_MANAGE_OVERLAY_PERMISSION " /> <!--系统警报窗口--> < uses-permission android: name = " android.permission.SYSTEM_ALERT_WINDOW " /> 完善代码: @Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R . layout . activity_main ) ; // 先判断系统是否为6.0 if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . M ) { // M == 23 // 再判断是否 有了悬浮窗权限 if ( ! Settings . canDrawOverlays ( LoginActivity . this ) ) { // 没有此权限,跳转到此权限页面,让用户手动开启 Intent intent =

dialog will not close primefaces

拜拜、爱过 提交于 2019-12-24 01:16:59
问题 I have a dialog on one of my pages. It opens fine. It works fine if you use the button on the page, it closes. However, if you try and "x" out of the dialog it will not close. I believe it is related to the fact that I have an input field on the dialog, but I am not sure. I apologize if this is a dupe, I could not find a similar post. <p:commandButton action="#{phoneListBean.debugger}" value="Merge Unqiue" onclick="mdlg.show();" update=":pmsg, :createNewPanel, :listform" /> <p:dialog id=

Swing font names do not match? (Making a font chooser, and am trying to display the default system font in a JComboBox)

放肆的年华 提交于 2019-12-24 01:01:36
问题 I am creating a swing font chooser. (See also: How to prevent JComboBox from becoming unresponsive when using a custom ListCellRenderer) To get all available fonts, I do: GraphicsEnvironment gE = GraphicsEnvironment.getLocalGraphicsEnvironment(); Font[] fonts = gE.getAllFonts(); In my font chooser (a JComboBox), which contains all the available fonts, I want to initialize it showing the default system font as selected. To do this, I use a static base font (which is gotten from a static base

超级简单的不规则轮廓的对话框的实现

ⅰ亾dé卋堺 提交于 2019-12-24 00:25:58
# include <QMouseEvent> # include <QPainter> # include <QPixmap> # include <QBitmap> Dialog :: Dialog ( QWidget * parent ) : QDialog ( parent ) , ui ( new Ui :: Dialog ) { ui - > setupUi ( this ) ; QPixmap pix ; /* 以下四行代码,任意一行都是有效的 */ pix . load ( "D:\\VS\\qtCreator\\ShapeWidget\\puppy.png" , 0 , Qt :: AvoidDither ) ; //pix.load("D:\\VS\\qtCreator\\ShapeWidget\\puppy.png",0, Qt::ThresholdAlphaDither); //pix.load("D:\\VS\\qtCreator\\ShapeWidget\\puppy.png", 0, Qt::ThresholdDither ); //pix.load("D:\\VS\\qtCreator\\ShapeWidget\\puppy.png", 0, Qt::AvoidDither | Qt::ThresholdAlphaDither | Qt:

Adobe CQ5 regex that will reject an entire string if either of 2 different substrings are found within the string

好久不见. 提交于 2019-12-23 23:14:16
问题 Adobe CQ5 dialog editor, regex property: I am regex challenged so forgive me, but it seems a simple task and I just can't seem to find the right fit elsewhere on the internet. Every suggestion that looks right just doesn't seem to work in adobe's regex field. I want the content admin to supply a relative URL to a "thank you" page. I don't need anything super fancy, I simply want to reject the admin's input if "http" or ".com" is found anywhere within the text supplied by the admin. Examples

Displaying second dialog from button click in first dialog closes first dialog

五迷三道 提交于 2019-12-23 23:13:06
问题 In my app, I'm using an AlertDialog with a custom view. This view contains a couple of EditText s and a few other things. There are some listeners attached to the EditText s that perform whatever functionality is needed. On the button click of the dialog, I am performing some validation on the data entered into the EditText s and display another AlertDialog if the data is invalid. Once that (second) dialog is closed, I want to remain on the main dialog (with the custom view), but for some