dialog

Android EditTextPreference dialog style/theme

你说的曾经没有我的故事 提交于 2021-02-07 08:40:54
问题 I'm trying to style the dialog box that appears when I select an EditTextPreference in my SettingsActivity. So far I have been able to change the colour of the two buttons and the background with: dialog.getButton(DialogInterface.BUTTON_NEGATIVE).setTextColor(0xffffffff); dialog.getButton(DialogInterface.BUTTON_POSITIVE).setTextColor(0xffffffff); dialog.getWindow().setBackgroundDrawableResource(R.drawable.blue_background); But I am so far unable to change the title at the top of the dialog.

Update a component in parent window from a dialog of PrimeFaces Dialog Framework

倖福魔咒の 提交于 2021-02-07 07:56:11
问题 I am using PF dialog framework to open a dialog. public void addSpecFeatures(){ genericFeatures = new GenericFeatures(); Map<String,Object> options = new HashMap<String, Object>(); options.put("resizable", false); options.put("draggable", false); options.put("modal", true); options.put("widgetVar", "featureDialog"); RequestContext.getCurrentInstance().openDialog("PAGEName", options, null); } From the dialog I would like to update a component in the parent page. So, I tried below code public

Update a component in parent window from a dialog of PrimeFaces Dialog Framework

南楼画角 提交于 2021-02-07 07:55:57
问题 I am using PF dialog framework to open a dialog. public void addSpecFeatures(){ genericFeatures = new GenericFeatures(); Map<String,Object> options = new HashMap<String, Object>(); options.put("resizable", false); options.put("draggable", false); options.put("modal", true); options.put("widgetVar", "featureDialog"); RequestContext.getCurrentInstance().openDialog("PAGEName", options, null); } From the dialog I would like to update a component in the parent page. So, I tried below code public

AutocompleteSearchFragment in Dialog gives InflateException

喜夏-厌秋 提交于 2021-02-05 11:52:36
问题 I am using the Google Map's Places API's AutoCompleteSearchFragment in a Dialog . The error that I am getting occurs when I launch the dialog, close it, then relaunch it. Error Message: Error inflating class fragment. Caused by: java.lang.IllegalArgumentException: Binary XML file line #69: Duplicate id 0x7f0a0027, tag null, or parent id 0x7f0a00c7 with another fragment for `com.google.android.libraries.places.widget.AutocompleteSearchFragmet My code: Dialog alert = new Dialog(MainActivity

how to set image in dialogbox in c++ win32 API?

泪湿孤枕 提交于 2021-02-04 21:10:31
问题 i have developing a C++ Api project. i will use dialogboxparam to create a dialogbox... i done to create and set the textbox,labels and buttons... its work fine... now i want to add a image in the top of the dialogbox... i did use this code in WM_INITDIALOG: HBITMAP hImage= (HBITMAP)LoadImage(NULL,L"C:\\WINDOWS\\system32\\BMA-Images\\login-header",IMAGE_BITMAP,LR_DEFAULTSIZE ,LR_DEFAULTSIZE ,LR_LOADFROMFILE|LR_CREATEDIBSECTION); SendMessage(_hwnd,STM_SETIMAGE,IMAGE_BITMAP,(LPARAM)hImage); But

save InDesign ScriptUI options in file and load in the next run

牧云@^-^@ 提交于 2021-01-29 15:31:18
问题 I built a Dialog in InDesign script that has any options. I want to save the settings the user selects in a file (For example in a file named setting.ini) to do not require a re-adjustment in the next run and the same settings are enabled for the Dialog. Is there such a possibility? 回答1: Yes, you can use the label functionality to save any information to any InDesign objects. To save things from dialogs that you want to access the next time that a script is run, it would make most sense to

Image in ImageView disappear

…衆ロ難τιáo~ 提交于 2021-01-29 02:15:27
问题 In MainActivtiy , we use Glide to load URL image into imgSignature . When imgSignature clicked, a custom dialog pop out and it will display the image in imgSign . Our problem is when we clicked the done button in the custom dialog, the image inside imgSignature become empty and getting this toast message bgDrawable null . Why image in imgSignature will gone ? lateinit var signDialog: Dialog override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view,

Image in ImageView disappear

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-29 02:08:15
问题 In MainActivtiy , we use Glide to load URL image into imgSignature . When imgSignature clicked, a custom dialog pop out and it will display the image in imgSign . Our problem is when we clicked the done button in the custom dialog, the image inside imgSignature become empty and getting this toast message bgDrawable null . Why image in imgSignature will gone ? lateinit var signDialog: Dialog override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view,

Importing Excel into DataGridView

坚强是说给别人听的谎言 提交于 2021-01-29 00:03:32
问题 I'm making a program where two databases are merged together.... I can import an excel spreadsheet into a DataGridView with this code: string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\test.xls;Extended Properties=""Excel 8.0;HDR=YES;IMEX=1"""; DbProviderFactory factory = DbProviderFactories.GetFactory("System.Data.OleDb"); DbDataAdapter adapter = factory.CreateDataAdapter(); DbCommand selectCommand = factory.CreateCommand(); selectCommand.CommandText = "SELECT *

Importing Excel into DataGridView

我的未来我决定 提交于 2021-01-28 23:59:15
问题 I'm making a program where two databases are merged together.... I can import an excel spreadsheet into a DataGridView with this code: string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\test.xls;Extended Properties=""Excel 8.0;HDR=YES;IMEX=1"""; DbProviderFactory factory = DbProviderFactories.GetFactory("System.Data.OleDb"); DbDataAdapter adapter = factory.CreateDataAdapter(); DbCommand selectCommand = factory.CreateCommand(); selectCommand.CommandText = "SELECT *