dialog

BASH dialog Dynamic menu

半城伤御伤魂 提交于 2020-01-04 05:25:11
问题 I need to create a dynamic menu with dialog using vars from an array. Heres my code: #!/bin/bash file="teste.cfg" count=0; while IFS=";" read nomeTarefa dirOrigem dirDest tipoBkp agendarBkp compactarBkp gerarLog || [[ -n "$gerarLog" ]]; do #RECEBE NAS VARS OS VALORES DELIMITADOS POR ; count=$((count + 1));#INICIA O COUNT PARA INCREMENTAR O OPTIONS options[$count]="$options$count) \"$nomeTarefa\"" #CONCATENA O OPTIONS done < $file options=$"$options" for ((i=1; i<=count; i++)) do echo $

BASH dialog Dynamic menu

社会主义新天地 提交于 2020-01-04 05:24:06
问题 I need to create a dynamic menu with dialog using vars from an array. Heres my code: #!/bin/bash file="teste.cfg" count=0; while IFS=";" read nomeTarefa dirOrigem dirDest tipoBkp agendarBkp compactarBkp gerarLog || [[ -n "$gerarLog" ]]; do #RECEBE NAS VARS OS VALORES DELIMITADOS POR ; count=$((count + 1));#INICIA O COUNT PARA INCREMENTAR O OPTIONS options[$count]="$options$count) \"$nomeTarefa\"" #CONCATENA O OPTIONS done < $file options=$"$options" for ((i=1; i<=count; i++)) do echo $

PrimeFaces DataTable selection goes null on dialog.show()

混江龙づ霸主 提交于 2020-01-04 04:02:50
问题 I've got a BIG problem using Datatable and Dialog together. I need to click on a datatable's row and showing a dialog which loads data from datatable's selected item. Selection goes fine, but the selected element is set to null as soon as the dialog is shown :/ Here's some code : <h:form id="form"> <pou:dataTable widgetVar="conv" id="mex" var="conv" value="#{messagesBean.listaConversazioni}" paginator="true" rowKey="#{conv}" paginatorPosition="bottom" selection="#{messagesBean.destinatario}"

Showing an OK dialog box from a service/receiver in Android

喜夏-厌秋 提交于 2020-01-04 02:06:08
问题 My application has a receiver which is invoked when an SMS is received. I want to notify the user with a simple 1 button dialog box.. This is my code : AlertDialog.Builder builder = new AlertDialog.Builder(context); builder.setMessage("Hello dude").setCancelable(false).setPositiveButton("Got you", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { // TODO Auto-generated method stub //mp.stop(); } }).show(); But, it is throwing an

Using Multiple Forms in c#

限于喜欢 提交于 2020-01-03 16:50:18
问题 i'm trying to make a small project that uses multiple forms (dialogs) for different states and ran in a few problems. My dialogs are Login, Settings and Display. When application is started Login form is displayed Application.Run(new login()); from it the user can open Settings form or, if certain requirements are met, the Display form. Q1: how do i make Login form unavailable to user when Settings form is opened (i want the user to complete the fields in the Settings form, then click 'save'

Using Multiple Forms in c#

拟墨画扇 提交于 2020-01-03 16:50:03
问题 i'm trying to make a small project that uses multiple forms (dialogs) for different states and ran in a few problems. My dialogs are Login, Settings and Display. When application is started Login form is displayed Application.Run(new login()); from it the user can open Settings form or, if certain requirements are met, the Display form. Q1: how do i make Login form unavailable to user when Settings form is opened (i want the user to complete the fields in the Settings form, then click 'save'

How do I sendBroadcast(intent) from myDialog and receive in myActivity?

一世执手 提交于 2020-01-03 07:19:27
问题 So, I'm trying to get a handle on BroadcastReceivers and Intent filters. I have a custom Dialog that I create in MyActivity. In the Dialog, I have a Button. When the button gets clicked, I want to send a broadcast that MyActivity's receiver will pick up. Here's what I have right now: //MyActivity.java class myActivity extends Activity { //MyDialog dialog initialized in onCreate ... private class MyReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent

Custom time picker dialog in android

断了今生、忘了曾经 提交于 2020-01-03 04:42:13
问题 I want to create a custom time picker dialog (HH:MM:SS) in android which works in android os 2.3 or higher version. I have created custom time picker dialog but it is working only 4.0 or higher version, not in 2.3 to 3 version. Here i'm posting my code : public class MyTimePickerDialog extends AlertDialog implements OnClickListener, OnTimeChangedListener { /** * The callback interface used to indicate the user is done filling in * the time (they clicked on the 'Set' button). */ public

jQuery UI Dialog - Cannot see the closeText

匆匆过客 提交于 2020-01-02 22:35:11
问题 I'm trying to make a simple Dialog - no title just the word 'Close' and the X in the top right hand corner. My text etc. will then go underneath. However I fiddle with it I can't ever get the closeText attribute to display - I can see it in FireBug but it either doesn't appear, or a couple of characters appear under the X graphic. 回答1: Actually the problem is the jQuery UI CSS and jQuery Dialog itself. The jQuery UI Dialog does the following with whatever you pass in as closeText . it creates

set the font of a custom label added on a custom dialog page in nsis installer

时光毁灭记忆、已成空白 提交于 2020-01-02 17:48:49
问题 how to set the font of a label added on a custom added page in nsis installer To create the label i have used this : nsDialogs::Create 1018 var Label ${NSD_CreateLabel} 0 0 100% 32u "PLEASE CHOOSE WHAT DO YOU WANT TO INSTALL:" Pop $Label 回答1: !include nsDialogs.nsh var Label page custom pre function pre nsDialogs::Create 1018 ${NSD_CreateLabel} 0 0 100% 32u "PLEASE CHOOSE WHAT DO YOU WANT TO INSTALL:" Pop $Label CreateFont $0 "Arial" 18 SendMessage $Label ${WM_SETFONT} $0 1 nsDialogs::Show