Problem with custom dialog box

I have a custom dialog box. The code goes here

import net.rim.device.api.system.Bitmap;
import net.rim.device.api.ui.Color;
import net.rim.device.api.ui.component.Dialog;
import net.rim.device.api.ui.container.VerticalFieldManager;
import net.rim.device.api.ui.decor.BackgroundFactory;

public class CustomDialog extends Dialog{

    public CustomDialog(int command,String msg,int color,int alpha){
         super(command, msg, command,Bitmap.getPredefinedBitmap(Bitmap.EXCLAMATION), VerticalFieldManager.FOCUSABLE);
         setBackground (BackgroundFactory.createSolidTransparentBackground (color, alpha));
    }

}

I'm the caller to another class as follows

CustomDialog d = new CustomDialog(Utils.D_YES_NO,"Do you want to exit",Color.BLUE,140);
d.show();

Its display very well and as I intended it to be. But the problem is that I'm not able to get the index of the choice to perform certain actions, such as

    int i=d.getSelectedValue();

                    if(i==Dialog.D_YES){
                        Dialog.alert("hi");
                    }

                    }

Its do not call the dialog box, can anyone suggest me how to get the index of the choice that I chose to say YES or NO and to perform tasks accordingly

Plese try suite

CustomDialog d = new CustomDialog(Dialog.D_YES_NO,"Do you want to exit",Color.BLUE,140);
                d.show();
                d.setDialogClosedListener(new DialogClosedListener() {

                    public void dialogClosed(Dialog dialog, int choice) {
                        /*
                         *   // Field descriptor #211 I
                              public static final int YES = 4;

                              // Field descriptor #211 I
                              public static final int NO = -1;
                         */
                        int i=choice;
                        System.out.print("Selected Value :"+choice);
                        if(Dialog.YES==choice){
                            System.out.println("Selected Value : YES");
                        }else if(Dialog.NO==choice){
                            System.out.println("Selected Value: NO");
                        }

                    }
                });

If it is useful, please make as response and do not hesitate on LIKE button thanks

Tags: BlackBerry Developers

Similar Questions

  • Need help with custom dialog box

    I created a custom help dialog box. The problem is that 5 buttons do not properly fit in my manager of horizontal field on some blackberry devices. How can I make own? I tried to use my own custom buttons that allow me to specify their width and height, but I'm unable to get the width of the dialog box, so I can't determine how wide should be buttons.

    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.container.HorizontalFieldManager;
    
    public class HelpDialog extends Dialog
    {
        static int ButtonPressed;
        HorizontalFieldManager hfmChoices = new HorizontalFieldManager();
        ButtonField cmdFirst = new ButtonField("|<")
        {
            protected boolean navigationClick(int status, int time)
            {
                ButtonPressed = 0;
                close();
                return true;
            }
        };
        ButtonField cmdPrev = new ButtonField("<")
        {
            protected boolean navigationClick(int status, int time)
            {
                ButtonPressed = 1;
                close();
                return true;
            }
        };
        ButtonField cmdNext = new ButtonField(">")
        {
            protected boolean navigationClick(int status, int time)
            {
                ButtonPressed = 2;
                close();
                return true;
            }
        };
        ButtonField cmdLast = new ButtonField(">|")
        {
            protected boolean navigationClick(int status, int time)
            {
                ButtonPressed = 3;
                close();
                return true;
            }
        };
        ButtonField cmdClose = new ButtonField("Close")
        {
            protected boolean navigationClick(int status, int time)
            {
                close();
                return true;
            }
        };
    
        public HelpDialog(String message, int page, int maxPages)
        {
            super("Help (Page: " + page + " of " + maxPages + ")\n\n" + message + "\n", null, null, -1, null, 0);
            ButtonPressed = -1;
            if (page <= 1)
            {
                cmdFirst.setEnabled(false);
                cmdPrev.setEnabled(false);
            }
            if (page >= maxPages)
            {
                cmdNext.setEnabled(false);
                cmdLast.setEnabled(false);
            }
            hfmChoices.add(cmdFirst);
            hfmChoices.add(cmdPrev);
            hfmChoices.add(cmdNext);
            hfmChoices.add(cmdLast);
            hfmChoices.add(cmdClose);
            add(hfmChoices);
        }
    }
    

    Thank you

    Most people have no need a close button, they expect the ESC to do it for them.

    That said, I disagree with this statement:

    "I think that the only good way to use managers other than the AbsoluteFieldManager, is to use them at all."

    Designing a user experience that works well on multiple devices is difficult, and I don't think that has a size fits all approach work.  In addition, I don't have the time to create formats for specific screens for each device type, and although this will not happen now, I didn't have to rework screen designs every time that a new device came out.  I think that it is possible to create a common user interface experience given the size of the screen, and whether it is touch.  If you want to read my thoughts on this, have a look at the tutorial of the user interface you will find here:

    http://supportforums.BlackBerry.com/T5/Java-development/tutorials-for-new-developers-part-1/m-p/1621...

  • Problem with the dialog box displayed when the RadioButton is selected.

    It is an application with 3 buttons button1, radio 2 and output key that uses System.exit (0)
    The problem is with the dialogs first two buttons

    1. I open the application

    2 Select a radiobutton, I get a dialog box, I click 'ok', dialog will, that's fine.

    3. I choose an another radiobutton button1 or button2, I get the corresponding dialog, BUT know I have to click 'ok' twice to keep it alive.

    I don't know what could be the problem, here is the code:

    package com.thinkingblackberry;
    import net.rim.device.api.system.Display;
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.DrawStyle;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.component.PasswordEditField;
    import net.rim.device.api.ui.component.RadioButtonField;
    import net.rim.device.api.ui.component.RadioButtonGroup;
    import net.rim.device.api.ui.component.RichTextField;
    import net.rim.device.api.ui.component.Status;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    import net.rim.device.api.ui.component.PasswordEditField;
    
    public class HelloWorldScreen1 extends MainScreen implements FieldChangeListener, DrawStyle {
    
        protected static final int RED = 0;
        MButtons fullscreen;
        //protected RadioButtonGroup rbGroup= new RadioButtonGroup();
        public HelloWorldScreen1() {
    
            final RadioButtonGroup rbGroup=new RadioButtonGroup();
    
            setTitle("Application");
    
            RadioButtonField rbField= new RadioButtonField("RadioB1"){
    
                protected void paint(Graphics g){
                    g.setColor(Color.ROSYBROWN);
                    super.paint(g);
                }
            };
            RadioButtonField rbField2= new RadioButtonField("RadioB2"){
                protected void paint(Graphics g){
                    g.setColor(Color.SIENNA);
                    super.paint(g);
                }
            };
            RadioButtonField rbExit=new RadioButtonField("Exit"){
                protected void paint(Graphics g){
                    g.setColor(Color.DARKSLATEBLUE);
                    super.paint(g);
                }
            };;
            rbGroup.add(rbField);
            rbGroup.add(rbField2);
            rbGroup.add(rbExit);
            add(rbField);
            add(rbField2);
            add(rbExit);
    
            rbGroup.setChangeListener(new FieldChangeListener() {
                public void fieldChanged(Field field, int context) {
                if (rbGroup.getSelectedIndex() == 0) {
                    Dialog.inform( ""+rbGroup.getSelectedIndex());
    
                }
                else if (rbGroup.getSelectedIndex() == 1) {
                    Dialog.inform( ""+rbGroup.getSelectedIndex());
                }
                else if(rbGroup.getSelectedIndex()==2){
    
                    System.exit(0);
                }
    
                }
            });
    
        }
    
        public HelloWorldScreen1(long arg0) {
            super(arg0);
        }
    
        public void fieldChanged(Field field, int context) {
    
        }
    
    }
    

    I guess the event changed field is called twice, once deselection button1 and once to select button2. you pay your processing logic to account for this.

  • Developer SQL 2.1: problem with the dialog box to change the display

    I am running Version 2.1.0.63 on Windows XP SP3.

    When I open an existing view and make changes in the change display dialog box and then click on the button OK the dialog box remains open and the view is not changed.

    This user has Create View privileges and can run CREATE or REPLACE the sql statement to change the view. The same view of edition having the same user works very well in Version 1.5.3.

    Someone else has a similar problem?

    Thank you.

    It's a bug, the following exception is raised:

    Exception occurred during event dispatching:
    oracle.javatools.db.ddl.UnsupportedDDLException: Cannot update VIEW MADREMIA with the given changes using ALTER statements.
            at oracle.javatools.db.ddl.DDLGeneratorImpl.getUpdateDDLImpl(DDLGeneratorImpl.java:480)
            at oracle.javatools.db.ddl.AbstractDDLGenerator.processResultSet(AbstractDDLGenerator.java:148)
            at oracle.javatools.db.ddl.AbstractDDLGenerator.getUpdateDDL(AbstractDDLGenerator.java:110)
            at oracle.javatools.db.ddl.DDLDatabase.appendUpdateDDL(DDLDatabase.java:661)
            at oracle.javatools.db.ddl.DDLDatabase.updateObjects(DDLDatabase.java:556)
            at oracle.ide.db.dialogs.CascadeConfirmDialog.updateObjects(CascadeConfirmDialog.java:111)
            at oracle.ide.db.panels.TabbedEditorPanel.commitToProvider(TabbedEditorPanel.java:357)
            at oracle.ide.db.panels.TabbedEditorPanel.onExit(TabbedEditorPanel.java:246)
            at oracle.ideimpl.db.panels.TraversableProxy.onExit(TraversableProxy.java:62)
            at oracle.ide.panels.TDialog$L.vetoableChange(TDialog.java:104)
            at java.beans.VetoableChangeSupport.fireVetoableChange(VetoableChangeSupport.java:335)
            at java.beans.VetoableChangeSupport.fireVetoableChange(VetoableChangeSupport.java:252)
            at oracle.bali.ewt.dialog.JEWTDialog.fireVetoableChange(JEWTDialog.java:1472)
            at oracle.bali.ewt.dialog.JEWTDialog.dismissDialog(JEWTDialog.java:1502)
            at oracle.bali.ewt.dialog.JEWTDialog$UIListener.actionPerformed(JEWTDialog.java:1894)
            at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
            at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
            at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
            at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
            at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
            at java.awt.Component.processMouseEvent(Component.java:6263)
            at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
            at java.awt.Component.processEvent(Component.java:6028)
            at java.awt.Container.processEvent(Container.java:2041)
            at java.awt.Component.dispatchEventImpl(Component.java:4630)
            at java.awt.Container.dispatchEventImpl(Container.java:2099)
            at java.awt.Component.dispatchEvent(Component.java:4460)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
            at java.awt.Container.dispatchEventImpl(Container.java:2085)
            at java.awt.Window.dispatchEventImpl(Window.java:2475)
            at java.awt.Component.dispatchEvent(Component.java:4460)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
            at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
            at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
            at java.awt.Dialog$1.run(Dialog.java:1045)
            at java.awt.Dialog$3.run(Dialog.java:1097)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.awt.Dialog.show(Dialog.java:1095)
            at java.awt.Component.show(Component.java:1563)
            at java.awt.Component.setVisible(Component.java:1515)
            at java.awt.Window.setVisible(Window.java:841)
            at java.awt.Dialog.setVisible(Dialog.java:985)
            at oracle.bali.ewt.dialog.JEWTDialog.runDialog(JEWTDialog.java:395)
            at oracle.bali.ewt.dialog.JEWTDialog.runDialog(JEWTDialog.java:356)
            at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:55)
            at oracle.ide.panels.TDialogLauncher.showDialog(TDialogLauncher.java:225)
            at oracle.ide.db.dialogs.BaseDBEditorFactory.launchDialog(BaseDBEditorFactory.java:623)
            at oracle.ide.db.dialogs.BaseDBEditorFactory.editDBObject(BaseDBEditorFactory.java:368)
            at oracle.ide.db.dialogs.AbstractDBEditorFactory.editDBObject(AbstractDBEditorFactory.java:332)
            at oracle.ide.db.dialogs.BaseDBEditorFactory.editDBObject(BaseDBEditorFactory.java:54)
            at oracle.ide.db.dialogs.AbstractDBEditorFactory.editDBObject(AbstractDBEditorFactory.java:314)
            at oracle.dbtools.raptor.navigator.DatabaseNavigatorController.editObject(DatabaseNavigatorController.java:470)
            at oracle.dbtools.raptor.navigator.DatabaseNavigatorController.handleEvent(DatabaseNavigatorController.java:308)
            at oracle.ide.controller.IdeAction.performAction(IdeAction.java:531)
            at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:886)
            at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:503)
            at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
            at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
            at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
            at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
            at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
            at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1225)
            at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1266)
            at java.awt.Component.processMouseEvent(Component.java:6263)
            at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
            at java.awt.Component.processEvent(Component.java:6028)
            at java.awt.Container.processEvent(Container.java:2041)
            at java.awt.Component.dispatchEventImpl(Component.java:4630)
            at java.awt.Container.dispatchEventImpl(Container.java:2099)
            at java.awt.Component.dispatchEvent(Component.java:4460)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
            at java.awt.Container.dispatchEventImpl(Container.java:2085)
            at java.awt.Window.dispatchEventImpl(Window.java:2475)
            at java.awt.Component.dispatchEvent(Component.java:4460)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
            at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    

    Bug 9199263 has been filed for this, but apparently it wasn't a showstopper for the production. It may be set in one of the upcoming patches...

    Kind regards
    K.

  • [JS CS5] problem with memory leak possible with the dialog box in the event handler

    Hello

    I'm having a very difficult problem.

    I am attaching a script in a handler for a menu item, by using an installation script menu that I wrote based on one by Marc Autret. My version of the script menu installation attach a bunch of event handlers at the same time, to the actions of different menu.

    What is the event handler, with that I have a problem is to prompt the user for a URL and then applies the URL as a hyperlink to the text selection, with our house style for the way in which the URL should look like.

    The problem is the following:

    1. all other installed menu actions work very well, except for this one.

    2. the addition of URL script works fine, when you run it directly from the script menu.

    3. the combination of #1 and #2 (using the script to add URL by function as an event handler in the Edit menu) blocks to InDesign. But it is only after the addition of URL script has finished and done what it was supposed to do!

    4. when I comment on the section of the script URL adding user input, so that instead of saying

    userInput = myDisplayDialog();
    

    It is said

    userInput = "http://thisworks.com";   // userInput = myDisplayDialog();
    

    It works well as an event handler.

    So obviously a problem with the dialog box, but only when adding URL script is executed as an event handler. My first guess is that this is some kind of memory leak, but I think I am following the model of. destroy() the way I saw it elsewhere.

    Someone knows something like that before?

    I can provide all relevant if necessary scripts, but they are quite complicated. The most important of them is the input of the user function. Here it is:

    var myDisplayDialog = function( defaultText ) {
      
        var defaultText = defaultText || "";
        
        var myDialog = app.dialogs.add({
            name: "Type in a URL"
        });
        
        var myOuterColumns = [];
        var myInnerColumns = [];
        var myOuterRows = [];
        var myBorderPanels = [];
        var myTextEditboxes = [];
        var myInput;
        
        myOuterColumns[0] = myDialog.dialogColumns.add();
        myOuterRows[0] = myOuterColumns[0].dialogRows.add();
    
    
        myBorderPanels[0] = myOuterRows[0].borderPanels.add();
        myInnerColumns[0] = myBorderPanels[0].dialogColumns.add();
        myInnerColumns[0].staticTexts.add({
            staticLabel: "URL:"
        });
        
        myInnerColumns[1] = myBorderPanels[0].dialogColumns.add();
            
        myTextEditboxes[0] = myInnerColumns[1].textEditboxes.add({
             minWidth: 300,
             editContents: defaultText ? defaultText : "http://"
        });
        
        var myResult = myDialog.show();
        var myInput = myTextEditboxes[0].editContents;
        
        myDialog.destroy();
    
        if (myResult == false) {
              exit();
        }
        
        return myInput;
    
    }
    
    

    Hi Richard,

    Unfortunately, there is no guarantee that the ScriptUI longer work.

    Thake a peek here: http://forums.adobe.com/message/2881364

    --

    Marijan (tomaxxi)

    http://tomaxxi.com

  • Custom dialog box

    Hi all

    I need to have custom dialog boxes. I whent through http://developer.blackberry.com/native/documentation/cascades/ui/dialogs_toasts/tutorial_create_a_cu... this tutorial.

    But I need to build in the PRC.

    is this possible?

    I tried everything done porting the UTU in QML to CPP, by extending the Dialog class and all, the dialog box appears, but it is not black as when we show SystemDialog.

    isn't this possible in the PRC?

    Help, please!

    Kind regards.

    Found the solution! Make a custom control that looks like a dialog box, I need and behind the same added a container with blackish transparency to give it a feel of a system dialog box. and also, the user will not be able to interact with the screen as long as the dialog box appears on the screen.

    Kind regards.

  • Create a custom dialog box

    I want to do a custom dialog box that triggers the box when a specific menuitem is clicked?

    Where can I design my dialog box and fill in the specific data in it? Is there a guide available to create custom dialog boxes? I looked in the guides provided with the sdk of illustrator CS6, but found nothing relevant

    From CS6, Illustrator offers no SDK for dialog boxes and an SDK for signs limited. In both cases, you will need to use a third-party solution (we use Qt) or platform (WIN32 or cocoa)-specific code.

  • Some problems with custom skin

    Hello

    I have created custom skin and I have some problems with it.

    (* 1) as you can see on [this image | http://www.zilp.pl/z/test01/Members/jakubp/Folder.2007-06-22.2113643678/File.2008-09-29.7372305410] item of Navigation within the Navigation pane command appears quite a color must be white, but gets by default the font for application (dark green) color. *
    My definition of the skin is the following:

    / * NAVIGATION PANE * /.
    AF | navigationPane - tabs:tab - start {(background-image: url('/skins/zilprcskin/img/tab-start.gif'); width: 4px ;}}
    AF | navigationPane - tabs:tab - end {(background-image: url('/skins/zilprcskin/img/tab-end.gif'); width: 4px ;}}
    AF | navigationPane content tabs::tab {(background-image: url('/skins/zilprcskin/img/tab-content.gif') ;}}
    AF | navigationPane - tabs:tab:hover af | navigationPane - tabs:tab - start {(background-image: url('/skins/zilprcskin/img/tab-start.gif'); width: 4px ;}}
    AF | navigationPane - tabs:tab:hover af | navigationPane - tabs:tab - end {(background-image: url('/skins/zilprcskin/img/tab-end.gif'); width: 4px ;}}
    AF | navigationPane - tabs:tab:hover af | navigationPane content tabs::tab {(background-image: url('/skins/zilprcskin/img/tab-content.gif') ;}}

    AF | navigationPane - tabs:tab: selected af | navigationPane - tabs:tab - start {(background-image: url('/skins/zilprcskin/img/tab-start-selected.gif'); width: 4px ;}}
    AF | navigationPane - tabs:tab: selected af | navigationPane - tabs:tab - end {(background-image: url('/skins/zilprcskin/img/tab-end-selected.gif'); width: 4px ;}}
    AF | navigationPane - tabs:tab: selected af | navigationPane content tabs::tab {(background-image: url('/skins/zilprcskin/img/tab-content-selected.gif') ;}}
    AF | navigationPane - tabs:tab: selected: hover af | navigationPane - tabs:tab - start {(background-image: url('/skins/zilprcskin/img/tab-start-selected.gif'); width: 4px ;}}
    AF | navigationPane - tabs:tab: selected: hover af | navigationPane - tabs:tab - end {(background-image: url('/skins/zilprcskin/img/tab-end-selected.gif'); width: 4px ;}}
    AF | navigationPane - tabs:tab: selected: hover af | navigationPane content tabs::tab {(background-image: url('/skins/zilprcskin/img/tab-content-selected.gif') ;}}
    AF | navigationPane - tabs:tab {margin right: 2px ;}}
    AF | navigationPane - tabs:tab - link {color: #ffffff; make-weight: bold ;}}
    AF | navigationPane - tabs:tab - link: hover {color: Red; make-weight: bold ;}}
    AF | navigationPane - tabs:tab: selected af | navigationPane - tabs:tab - link {color: #ffffff}

    (* 2) as you can see on [this image | http://www.zilp.pl/z/test01/Members/jakubp/Folder.2007-06-22.2113643678/File.2008-09-29.7372305410] menu scroll icons displayed twice: my and by default (rich). My definition of the skin is the following: *.

    / * MENU * /.
    AF | menu {- tr - visible elements: 2 ;}}
    AF | menu: depressed.
    AF | menu: stressed {(background-image:url('/skins/zilprcskin/img/menuHighlighted.gif') ;}}
    AF | : bar menu-point-text {color: White; make-weight: bold ;}}
    AF | menu: highlight: bar-point-text {color: #CEFFF1 ;}}
    AF | menu: bar-point-open-icon {(content:url('/skins/zilprcskin/img/small-arrow-down.gif'); margin-left: 2px ;}}
    AF | menu: go to the top icon {(content:url('/skins/zilprcskin/img/small-arrow-up.gif') ;}}
    AF | menu: go to the bottom-icon {(content:url('/skins/zilprcskin/img/small-arrow-down.gif') ;}}
    AF | : submenu of the menu-open-icon {(content:url('/skins/zilprcskin/img/small-arrow-right.gif') ;}}
    AF:menu:bar - point-text {make-weight: bold ;}}
    AF | commandMenuItem:menu - point-icon-style,
    AF | : submenu of the menu-icon-style {background-color: #a1caca; border: none ;}}
    AF | commandMenuItem: highlight: menu - item text.
    AF | commandMenuItem: highlight: menu-point-Accelerator,.
    AF | commandMenuItem: highlight: menu-point-open-indicator.
    AF | menu: highlight: submenu text,.
    AF | menu: highlight: submenu-Accelerator,.
    AF | menu: highlight: submenu Open indicator {background-color: #a1caca; border: none ;}}

    (* 3) as you can see on [this image | http://www.zilp.pl/z/test01/Members/jakubp/Folder.2007-06-22.2113643678/File.2008-10-01.6059969354] I also have a problem with default Panel box. Header font color should be white and ago strange empty space in header: *.

    / * DEFAULT CORE BOX PANEL * /.
    . AFPanelBoxHeaderCoreDefault:alias {color: #ffffff ;}}
    AF | panelBox::content:core:default {border-color: #149492 ;}}
    AF | panelBox:header - departure: kernel: default {(background-image: url('/skins/zilprcskin/img/tab-start.gif') ;}}
    AF | panelBox:header - Centre: kernel: default {(background-image: url('/skins/zilprcskin/img/tab-content.gif') ;}}
    AF | panelBox:header - end: core: default {(background-image: url('/skins/zilprcskin/img/tab-end.gif') ;}}

    Kuba

    Hello Kuba,

    I have a quick look in your message. For the moment I can solve one of your questions. The text of the panelBox header that you use skin:

     af|panelBox::header-element { color:White; } 
    

    Is on the white space, the 'skins/zilprcskin/img/tab-start.gif' image enough width? I use the same selectors (af | panelBox:header - departure: kernel: default af | panelBox:header - Centre: core: by default, af | panelBox:header - end: core: by default) and it works for me (but I'm not using an image, the only background color). Probably you need to change the width of header-early, restricting the scope and the lengthening of the Center header.

    As Simon said, Firebug is very useful to do this :)

    JVN

  • Name to appear first in the custom dialog box pop-up list

    Hi Forum.

    Thanks for the support so far.  I'm creating a simple custom dialog box which will be "popup", few names in the drop-down list.

    I read an external txt file bearing the name corresponding to the drop-down list. I try to display the name "Stephen" in the txt file as the first and then others follow one by one. Please help on this.

    name listed in the pop-up window

    Dialog.Load ({}

    names of:

    {

    'The King':-1.

    'Queen':-2,.

    'Jack':-3,.

    "Stephen":-4,.

    "Robert":-5,.

    }

    })

    He tried as below but found that the myList3 variable is directly instead of its value ("Stephen").

    Dialog.Load ({}

    names of:

    {

    myList3 : + 1, / / the variable myList3 will be known as "Stephen" stored inside.

    'The King':-1.

    'Queen':-2,.

    'Jack':-3,.

    "Stephen":-4,.

    "Robert":-5,.

    }

    })

    Appreciated your timely help on that. Thank you.

    See examples 3 and 4 in the execDialog API reference.

  • How to continue rendering of the transition with the custom dialog box open

    Hello

    I'm working on a plugin for some transitions custom (currently for CS6/CC on Windows).

    I use a custom dialog (hasCustomDialog in PiPL) during the esSetup box to define the transition parameters. While the dialog box is open, first execution is suspended until the dialog box is closed.

    The problem is, if I'm fiddling with the settings I do not see the changes in the program monitor and I don't get any comment first.

    I tried to make the dialog non-blocking, but then first did not executives when I changed something in the dialog box.

    Anyone know if it is possible to maintain the dialogue and still have first actively updating the display?

    Kind regards

    Philipp Stelzer

    But I want to keep the dialog box open to see the changes directly without opening the dialog box whenever I want to change a value. Is this possible with a custom dialog?

    It is not the case.  But using the AE API with extensions of the transition, you should be able to achieve the same thing, with the effect controls panel, containing all your effects settings.

  • Problem Manager multiple selection with system dialog box

    I currently have a problem with the help of system on a manager of multiple selection dialog as the code below works fine:

    multiSelectHandler {
                        status: listView1.selectionList().length + qsTr(" Clients Selected") + Retranslate.onLocaleOrLanguageChanged
                        actions: [
                            DeleteActionItem {
                                id: deleteActionItem
                                onTriggered: {
                                    var selectionList = listView1.selectionList();
                                    var selectedItem = dataModel.data(selectionList);
                                    console.log(selectedItem);
    
                                    for (var i = 0; i < selectionList.length; ++ i) {
                                        _sql.deleteClient(dataModel.data(selectionList[i]).clientID)
                                        dataSource.loadData()
                                    }
                                }
                            }
                        ]
                    }
    

    However, when it is changed to use that a dialogue system, the feature does not work and the console record results:

    selected list: undefined

    selected item: undefined

    multiSelectHandler {
                        status: listView1.selectionList().length + qsTr(" Clients Selected") + Retranslate.onLocaleOrLanguageChanged
                        actions: [
                            DeleteActionItem {
                                id: deleteActionItem
                                onTriggered: {
                                    multiSelectDeleteDialog.show()
                                }
                                attachedObjects: [
                                    SystemDialog {
                                        id: multiSelectDeleteDialog
                                        title: qsTr("Delete Clients") + Retranslate.onLocaleOrLanguageChanged
                                        body: qsTr("Are you sure you want to delete these clients?") + Retranslate.onLocaleOrLanguageChanged
                                        onFinished: {
                                            if (result == 3) {
                                                console.log("Cancelled")
                                            } else {
                                                console.log("Deleted")
                                                var selectionList = listView1.selectionList()
                                                console.log("selected list: " + selectionList)
                                                var selectedItem = dataModel.data(selectionList);
                                                console.log("selected item: " + selectedItem);
    
                                                for (var i = 0; i < selectionList.length; ++ i) {
                                                    _sql.deleteClient(dataModel.data(selectionList[i]).clientID)
                                                    dataSource.loadData()
                                                }
                                            }
                                        }
                                    }
                                ]
                            }
                        ]
                    }
    

    With the help of Roger Leblanc, it works now

    multiSelectHandler {
                        status: listView1.selectionList().length + qsTr(" Clients Selected") + Retranslate.onLocaleOrLanguageChanged
                        actions: [
                            DeleteActionItem {
                                property variant selectionList
                                property variant selectedItem
                                id: deleteActionItem
                                onTriggered: {
                                    deleteActionItem.selectionList = listView1.selectionList()
                                    deleteActionItem.selectedItem = dataModel.data(selectionList);
                                    multiSelectDeleteDialog.show()
                                }
                                attachedObjects: [
                                    SystemDialog {
                                        id: multiSelectDeleteDialog
                                        title: qsTr("Delete Clients") + Retranslate.onLocaleOrLanguageChanged
                                        body: qsTr("Are you sure you want to delete these clients?") + Retranslate.onLocaleOrLanguageChanged
                                        onFinished: {
                                            if (result == 3) {
                                                console.log("Cancelled")
                                            } else {
                                                console.log("Deleted")
    
                                                for (var i = 0; i < deleteActionItem.selectionList.length; ++ i) {
                                                    _sql.deleteClient(dataModel.data(deleteActionItem.selectionList[i]).clientID)
                                                    dataSource.loadData()
                                                }
                                            }
                                        }
                                    }
                                ]
                            }
                        ]
                    }
    
  • Get lists in cascade with a different combination in custom dialog boxes

    Adobe LiveCycle Designer Cookbooks by BR001: using app.execDialog () in a form in Adobe Designer

    1.PNG

    I am the above post and try to do this:

    1.

    When I select "Åland", he must show the cities of this island in a new list box that is added to the first. When I select a city ranked, it shows the district as a result to a third list box, like this:

    Capture.jpg

    (The dialog box above is created with excel visual basic.)

    The combination of the above selection is random. When you select point 110-> article 1103, it may or may not show 11031, according to data provided by the document of the requirement.

    I studied the code in the sample PDF file. Now, I can only reach this step: select the item 110-> article 1103, it shows 11031.

    But I see no better way to add additional selection (for example workflow It can also browse the 120-> 1204-> 12043).

    My code

    function customDialogBox() {}

    var dialogDescriptor = {}

    "DS1": function (dialog) {/ / the first list}

    DS1 var = dialog.store (['DS1']);

    for (var DS1 item) {}

    If (DS1 [point] > 0) {}

    var selectedValue1 = item;

    break;

    }

    }

    If (dialogObject.selectedItem (DS1) == '110') {//when "110" in the first list is enabled, it allows the display of list2

    Dialog.visible ({}

    LST2: true

    });

    } else {}

    Dialog.visible ({}

    LST2: false

    });

    Dialog.Load ({}

    "txt1": selectedValue1

    });

    }

    },

    'LST2': function (dialog) {/ / the second list}

    When "1103" in the second list is selected, it envisibles list3

    },

    'LST3': function (dialog) {/ / the third list}

    concatenate and return the string selected in List1, List2, List3

    }

    };

    var dialogObject = {}

    DS1: data.list1, map / / a, storing the data in the first level

    LST2: data.list110,//a card, storing the data in the second level, when the parent code is 110

    LST3: data.list1103 //a card, storing the data in the third level, when the parent code is 1103

    }

    }

    Basically it is to hardcode the selection flow. I want to dynamically generate lists.

    I think store all lists and identify them by ID, perhaps, in this way:

    Header 1

    var dialogObject = {}

    DS1: data.list1,

    LST110: data.list110,

    LST1103: data.list1103,

    LST120: data.list120,

    ......

    }

    But how can I correctly identify, in order to show/hide the lists and finally out of the string that is concatenated in function customDialogBox()?

    Or maybe is there a better way to retrieve the list when execution, please enlighten me!

    2. Moreover, it is possible to do research (find the code and highlight the result element) as shown in the picture above? Can you give me a few keywords that I need google with?

    A big thank you!

    It is possible to dynamically create objects and dialogue, as well as of the data within the json object...

    What I mean by item ID is the ID of the element in your dialog box, such as DS1, LST2, LST3... but it cannot be LST10, is too long, the dialog box will not interpret the ID because of its length

    What I want to say to the good conditions in the initialize event, is when the event initialize when the user selects an item in the first list, you call, you will have to do if statements with variables in behind to guide the behavior of the dialog box to display the lists and data you want exactly want to display.

  • can I return a string in a custom dialog box created with app.execDialog ()?

    Adobe LiveCycle Designer Cookbooks by BR001: using app.execDialog () in a form in Adobe Designer

    I am the above post and try to do the following:

    Capture.PNG

    I want to write the output of one of the selection of list to PDF dialog box, what I'm going to script?

    Something like document. Write() in Javascript (see: http://www.tutorialspoint.com/javascript/javascript_dialog_boxes.htm ). I tried to use document. Write() in the script dialog box, but it doesn't seem to work.

    Or can the dialog box return a string value?

    According to the PDF example in the first link, this dialogObject is what is returned when you see a dialog box:

    var dialogObject = {}

    DS1: ({}),

    execDialog: function() {}

    Return app.execDialog (dialogDescriptor);

    },

    selectedItem: {function (control)}

    If (typeof (control) = "string") {}

    control = this [control];

    }

    for (var control element) {}

    If (typeof (control [item]) = 'object') {}

    var r = this.selectedItem (control [item]);

    If (r! == undefined) {}

    Return r;

    }

    } else {}

    If (control [point] > 0) {}

    Returns [dot] control;

    }

    }

    }

    },

    };

    Return dialogObject;

    Hello

    Yes it is possible, by removing the execDialog() function and call the just before execDialog the dialogObject return, you call the dialog box to be executed directly in the service, so if you start a string on the top of the function and the validation value you set the string value of the item found in the list box then you will be able to return the value of the string instead of the dialogObject...

    Here is a short example:

    dialog() {} function

    var strValue = "";

    var dialogDescriptor =

    {

    Description:

    {

    align_children: "align_row."

    items:]

    {

    type: "display."

    align_children: 'align_left,

    items:]

    {

    type: 'edit_text. "

    item_id: "txt1"

    Width: 300

    },

    ]

    },

    {

    type: "ok_cancel."

    }

    ]

    },

    validate: function (dialog)

    {

    No validation required

    Returns true;

    },

    commit: function (dialog)

    {

    elements var = dialog.store ();

    strValue = items ["txt1"];

    },

    };

    var dialogObject =

    {

    execDialog: function() {return app.execDialog (dialogDescriptor);},

    //...

    };

    app.execDialog (dialogDescriptor);

    return strValue;

    }

    Hope this will help you

  • Research and problem of Tags dialog box

    Hello

    I have problem with the research and marking dialog box. I have properly put tags implemented in my custom portal webcenter application. I can add/remove tags on the pages and I am able to navigate through the results using Tag Cloud. However research component dialog does not return no results when I search tags. There is an additional configuration required to get results of tag in the search dialog component? I would be grateful of any information that might help solve this problem.

    Thank you

    Adam

    You have configured Oracle SES?

    If this isn't the case, you will need to configure your WebCenter portal to use the default search adapter.

    Change adf-config. XML as follows:

    
    

    Set to "false" or comment tag properties.

    Kind regards.

  • Custom dialog box could not be shown during the event of 'onCreationCompleted '.

    My application has a 'Warning' dialog box which must be indicated when the application is launched. There are two options in this regard. If users do not accept the warning, the app will be closed. I put it in the onCreationCompleted event handler in the first screen, but it could not be shown there. But I tried to click on a button to open it, it can be displayed correctly.

    I also tried with the dialog system, it can be shown correctly in the event of onCreationCompleted. But I couldn't use it cause my warning dialog box has a complex user interface design.

    attachedObjects: [
        CDialogDisclaimer {
            id: cddisclaimer
        }
    ]
    
    onCreationCompleted: {      try {
            cddisclaimer.open();  //Checked the log, no error, just could not show    } catch (error){        console.log("custom dialog error:"+error.message);    }
    }
    

    Does anyone knows how to fix this?

    Thank you.

    Hello

    It's very strange. Could you try to open it from Manager QTimer onTimer?

    Try to set a large interval first, then, if it works set to 0 msec.

    This page contains a snippet of code to start the timer in QML (search for "QTimer"):

    https://developer.BlackBerry.com/Cascades/documentation/dev/integrating_cpp_qml/index.html

Maybe you are looking for

  • Satellite L650 - 10 M - webcam could not be initialized

    s my computer laptop integrated webcam has not started for 5 weeks... .i heard someone as I have the same problem with this model... I can't find my webcam on the Device Manager Here are a few questions(1) is a common problem on this model?(2) IS it

  • Programmatically set tracing options

    Hi all in my custom operator interface I managed to turn on or turn off the tracking via the API. What I want to do now is to memorize (again via the API) every single option in the window ' configure-> Station Options-> run-> enable tracking ' TestS

  • Older Delete backup sets.

    When I perform this operation manually then backup will not work.

  • program stops working

    Yesterday, when you try to transfer photos and info to a new catalog I received a message that had ceased to Lightroom work and if necessary, at the close. This happened twice. Is there any settings I need to change?Operating system: Windows 10Memory

  • CC library like always in CS4?

    HelloI used to work with older Dreamweavers up to version CS4.It was easy then to make library items (items that where as blocks of HTML code that would be fixed returns to every page on a site. Like a bar of navigation, footer or address of company