Shortcut key for the option in the dialog box?

I created a line of dialog popup that emulates the default behavior of the standard throw/save/cancel prompt I see native BlackBerry apps (my code below).

The only thing I can't seem to duplicate it, however, is that the keys shortcut for every menu item. I.e. on the native guests, S, D and C of each option characters are underlined, and press a letter to activate this option.

Can anyone think of a way to do it? Thank you!

Nicholas

String [] choice = new String() {"Save", "Throw", "Cancel" ;}
Dialogue diag = new dialog box ("Changes!", choice, null, 0, Bitmap.getPredefinedBitmap (Bitmap.QUESTION));
       
int iResponse = diag.doModal ();
If (iResponse == 0) {}
record pressed
If (doSave())
System.Exit (0);
Returns false;
} ElseIf (iResponse == 1) {}
Throw a hurry
System.Exit (0);
Returns false;
} else {}
you press on cancel or "back" button
Returns true;
}

Do not use the static dialog box class, create your own using PopupScreen in your implementation of PopupScreen, keyChar() of substitution and detect the values of keys you are interested in.

Tags: BlackBerry Developers

Similar Questions

  • What is the shortcut key for the underlining of words or phrases?

    I've done this before but forgot shortcut keys for the words highlighted as you type them when necessary. Assume that if you have a title and then you just press the shortcut keys and the title is underlined while typing and then you simply reverse the same to continue without pointing out the remaining sentence. 

    underscore words or phrases

    Hello
    If you want to emphasize a word or phrase, you can select the word or expression then CTLR + U for underling.
    It will be useful.
  • Generate the log file for the dialog box

    Hi all


    I'm generating information for the dialog box as a .txt log file format. That means that if the box is checked, the log file will be give ' checkbox1 - 01.»   Check the report, sizes against the information on tickets and slug jobs"is checked


    If the checkbox is not checked, the log file will be give ' checkbox1 - 01.»   Check the report, sizes against ticket and slug information on employment"is not checked


    and also the entry "myText2" also needs to generate the log file


    Can someone help on this... Help would be appreciated!



    var l is new window ('dialogue');.

    myGroup1 var = w.add ("panel", undefined, ' P & & G check the list ');

    myGroup1.alignChildren = 'left ';

    CheckBox1 var = myGroup1.add ("checkbox", not defined, '01.   (Check the ratio, size against the information on tickets and slug jobs");

    CheckBox2 var = myGroup1.add ("checkbox", not defined, '02.   "" "Check images are linked");

    var checkbox3 = myGroup1.add ("checkbox", not defined, '03.   Visually check the progress of KV/model/CP images");

    var checkbox4 = myGroup1.add ("checkbox", not defined, '04.   Visually check the progress of other elements such as Logo and bottle");

    var checkbox5 = myGroup1.add ("checkbox", not defined, '05.   Check the positioning of the markup language");

    var checkbox6 = myGroup1.add ("checkbox", not defined, '06.   Ensure that all measures are calculated Live based area");

    var checkbox7 = myGroup1.add ("checkbox", not defined, '07.   After that the resizing of the picture KV frame open to cut and bleed");

    var checkbox8 = myGroup1.add ("checkbox", not defined, '08.   Complete Magenta if there is insufficient image');

    var checkbox9 = myGroup1.add ("checkbox", not defined, '09.   ("To ensure that the document's bleed, crop gutter and slug information brands ');

    var checkbox10 = myGroup1.add ("checkbox", not defined, '10.   Make sure that the final work is updated on the server");

    var checkbox11 = myGroup1.add ("checkbox", not defined, '11.   ("Enter time cmd");

    var myGroup2 = w.add ('panel', undefined, 'The operator name');

    var myText2 = myGroup2.add ("edittext", undefined, "");

    myText2.characters = 25;

    myGroup2.orientation = 'left ';

    var buttons = w.add ("group");

    Buttons.Add ('button', undefined, 'Export to PDF', {name: 'ok'});

    Buttons.Add ('button', undefined, 'Cancel');

    w.Show ();

    ~ group();

    ~ If (myGroup1.alignChildren.value! = true) {}

    ~ alert ('yes')

    //~ }


    myDoc = app.activeDocument;

    w = [];


    DESCRIPTION: Make a TXT file

    myDoc = app.activeDocument;

    Log1 = makeLogFile (app.activeDocument.name.split('.') ([0], myDoc, true);

    log (log1, app.activeDocument.name);

    ~ log2 = makeLogFile ("test", myDoc, false);

    ~ Journal (log2, "Text file log base 2");

    Log1. Execute();

    ~ log2.execute ();

    function makeLogFile (aName, aDoc, deleteIt) {}

    var logLoc; path to the folder that will contain the log file

    try {}

    logLoc = aDoc.filePath;

    } catch (e) {}

    logLoc = getmyDoc (). parent.fsName

    }

    var queue = aFile (logLoc + "/" + name + ".txt");

    If {(deleteIt)

    aFile.remove ();

    return aFile;

    }

    var n = 1;

    so that {(aFile.exists)

    aFile = File (logLoc + "/" + String (n) + ".txt" aName);

    n ++

    }

    return aFile

    }

    function getScriptPath() {}

    try {}

    Return app.activeScript;

    } catch (e) {}

    Return File (e.fileName);

    }

    }

    function log (aFile, message) {}

    var today = new Date();

    If (! aFile.exists) {}

    do the new log file

    aFile.open ("w");

    aFile.write (String (today) + "\n");

    aFile.close ();

    }

    }

    function log (aFile, message) {}

    var text = o;

    If (! aFile.exists) {}

    do the new log file

    aFile.open ("w");

    aFile.write (message + "\n" + "\n" + String (w) + "\n");

    aFile.close ();

    }

    ~ aFile.open ("e");

    ~ aFile.seek (0.2);

    ~ aFile.write ("\n" + message);

    ~ aFile.close ();

    }

    myDoc.close (SaveOptions.no);

    Thanks in advance

    Steve

    Hi Steve,.

    There are some errors in your code.

    1. function 'getmyDoc' is used, but not created.
    2. fucntion 'getScriptPath' is created but not used. (In any case, this will not give you error)
    3. function 'journal' has defined two times with the same length of the parameter.

    etc...

    Here, I have modified your code. Try this.

    var w = new Window ("dialog");
    var myGroup1 = w.add('panel', undefined, 'P&&G Check List');
    myGroup1.alignChildren = "left";
    var checkbox1 = myGroup1.add ("checkbox", undefined, "  01.  Check the ratio, sizes against job ticket and slug information");
    var checkbox2 = myGroup1.add ("checkbox", undefined, "  02.  Check images are linked");
    var checkbox3 = myGroup1.add ("checkbox", undefined, "  03.  Visually check the progression of KV/Model/CP images");
    var checkbox4 = myGroup1.add ("checkbox", undefined, "  04.  Visually check the progression of other elements like Logo and Bottle");
    var checkbox5 = myGroup1.add ("checkbox", undefined, "  05.  Check the placement of Language Tagging");
    var checkbox6 = myGroup1.add ("checkbox", undefined, "  06.  Ensure that all measurements are calculated based on Live area");
    var checkbox7 = myGroup1.add ("checkbox", undefined, "  07.  After resizing the KV image frame opened up to trim and bleed");
    var checkbox8 = myGroup1.add ("checkbox", undefined, "  08.  Fill Magenta if there is inadequate image");
    var checkbox9 = myGroup1.add ("checkbox", undefined, "  09.  Ensure the document has bleed, crop marks, gutter marks and slug information");
    var checkbox10 = myGroup1.add ("checkbox", undefined, "  10.  Ensure the final artwork is updated in the Server");
    var checkbox11 = myGroup1.add ("checkbox", undefined, "  11.  Enter time in CMD");
    var myGroup2 = w.add('panel', undefined, ' Operator Name');
    var myText2 = myGroup2.add("edittext", undefined, "");
    myText2.characters = 25;
    myGroup2.orientation = "left";
    var buttons = w.add ("group");
    buttons.add ("button", undefined, "Export PDF", {name: "ok"});
    buttons.add ("button", undefined, "Cancel");
    w.show ();
    myDoc = app.activeDocument;
    log1 = makeLogFile(app.activeDocument.name.split('.')[0], myDoc, true);
    log(log1, app.activeDocument.name);
    log1.execute();
    function makeLogFile(aName, aDoc, deleteIt)
    {
        var logLoc = "";
        try
        {
            logLoc = aDoc.filePath;
            } catch (e) {}
        var aFile = File(logLoc + "/" + aName + ".txt");
        var n = 1;
        while (aFile.exists)
        {
            aFile = File(logLoc + "/" + aName + String(n) + ".txt");
            n++;
            }
        return aFile
        }
    function log(aFile, message)
    {
        var text = w;
        var rep = "";
        if (!aFile.exists)
        {
            aFile.open("w");
            var today = new Date();
            rep += String(today) + "\n";
            rep += message + "\n" + "\n\n";
            for(var i =0;i
    

    Kind regards

    Cognet

  • Shortcut for the dialog box method replace Pages

    What is the method of shortcut keyboard to set up the dialog box replaces Pages.  I use a function to replace the Pages a lot in the preparation of PDF documents and need a faster method than to use the mouse on the side bar to the right of the tools.  I note this shortcut key to insert pages is Ctrl-Shift-I - what is the shortcut to replace Pages.  Previous Acrobat 9, I use alt - DNR, which brought up the dialog box replaces the Pages via the menu, but is no longer part of the Document in the menu bar — it has been deleted.  Please, it's VERY important to me.  Any help will be greatly appreciated.

    There is no keyboard shortcut to replace Pages and, unfortunately, there is no way in Acrobat X Pro to set a keyboard shortcut.

    The way the faster I know to bring up the command replace Pages is to customize the quick tools (the gear in the top toolbar icon) allows you to add Pages to replace the quick toolbar. It will then be a click to order.

  • I can't paste my password for the private key in the dialog box

    I use Thunderbird on Ubuntu 14.10 with Enigmail GPG encryption. When Thunderbird needs my password, a dialog box appears asking for it, but it won't let me paste the password into the dialog box. I use a completely random sentence of 64 characters, including special characters, and I can't sit and type the thing every time. I need to be able to stick my password manager. I do not know if it is a problem of Thunderbird, or if it is with Enigmail or Ubuntu. Any advice would be appreciated.

    Thank you!

    -chriscrutch

    Although I do not use Enigmail and therefore do not have actual knowledge, you need, I found some information that may help you.

  • Shortcut keys for the visible layers in In Design CS 5.5

    Hello!  Y at - it a hotkey to toggle if some layers are visible?

    Thank you!

    Is there a reason you are not using ruler guides?

  • An idea for the dialog box Image size

    Just an idea I had. Should at least make it easier to explain the concept of resolution for beginners:

    image size.png

    Might work? Any opinions? Just a sketch of course, probably could be improved.

    I still like the idea. What I think is needed is a clear method to show the relationship of DPI, image size (not pixels) and resampling. So the beginner can grasp how dpi refers to the size of the image and how a 4 X 5 and 8 X 10 picture can have the same pixel dimension, and how two 8 X 10 images can have different resolutions. They are closely related, but I don't know how to articulate.

  • reason for commas not allowed in the dialog box select text resource

    Hello
    I use jdev 11.1.2.2 and I was quite surprised by not being able to put the comma in the key in the dialog box select text resource. This behavior forces me to change the resource group by hand and not through this dialog box.
    Is there a reason for this undocumented? Because in my teams, nobody thinks that something like:
    mainTable.header=header Text
    secondTable.header=different Text
    is worse than the variant with underscore...

    If I interpret things the way that I think you mean, for example in the dialog select a text key resource cannot be a string without a period (or comma never seen that myself) as a separator, then the explanation is simple.
    This function of "convenience" of a resource string mapping depends on the access of the implicit getter of the Expression language.
    for example, the created EL is in the form #{viewcontrollerBundle.key}, which corresponds to the bundle.get ('key'); in terms of java.
    To support the use of the period (or the comma!) inside the key, the generated form will have to implement: #{viewcontrollerBundle ['key']} otherwise an example like this:
    #{viewcontrollerBundle.mainTable.header} would be generated which, in words EL would be mapped (as a Variant) with bundle.getMainTable () .getHeader () because of the way periods are interpreted in EL.
    So basically, the dialog box is properly in the light of the real EL that is generated.
    All this side - it is a known restriction and 12, we changed the EL format to the more flexible form in this case and therefore the dialog box will accept periods.

  • How can I change the default file locations in the dialog box "Save as" in Windows 7 x 64?

    I tried all the tips and tricks of WinXP, but they do not seem to work in Win7. Does anyone know how to change the location of the default files for the dialog box "Save as" in Win7?

    It seems, in Windows 7, that you cannot change locations by default save as file.

    In XP, we could modify the registry or use other methods to change the location of the files that appear on the left margin of the Save as dialog box. But some Morón in Redmond chose to end with good sense and called "libraries."

    I really wish Microsoft would stop doing what they think, it's the best for Grandma and little Suzy and give us what expect when we pay for these programs.

  • Photoshop CC 2015: what does 'contrast details' in the dialog box generate Normal Map?

    I can't find detailed documentation for the dialog box to generate Normal Map. In particular, I would like an explanation of what the sliders «Contrast Details»

    Thank you

    Barry

    Oh had.

    He set the overall intensity.

    Concerning

    Jitendra

  • Keyboard shortcut to switch between the dialog box option buttons

    Usually, you can switch between the radio buttons in a dialog on Mac using the Tab key. But this does not work for me in Photoshop dialog boxes, including the dialog box for canvas turning. On windows, its so useful to use keyboard shortcuts to switch between 'Clockwise' and 'Left' in the rotation dialog box.

    How to use keyboard shortcuts to switch between the radio buttons in a dialog box in Photoshop?

    In the Mac system preferences > keyboard, you can set the Tab key to focus on all of the controls. (At the bottom of the dialog box). So I can tab over an option button in Firefox preferences and use the up/down arrow keys to move among option buttons.

    So far, the problem is that Photoshop will not return to this setting. Tab is reserved for numeric fields only.

  • How can I create a gif image using photoshop. I mean photoshop shortcut keys and the steps for creating gif

    How can I create a gif for my blog [url removed by host] image using photoshop. I mean photoshop shortcut keys and the steps for creating gif

    CTRL + Alt + Shift + S Windows Mac CMD + Option + SHIFT + S change the image that you normally edit images.

  • How install Flash Player via the command line using sudo to install without being invited for the dialog "Preferences updated Flash Player"? Is there a really quiet option, no prompt?

    Since the administration guide, I execute the following commands on a remote host to install flash player. However, the command stalls waiting for "Update Flash Player Preferences" dialog box to decide. I would like to run this command on a remote host and have to install without any warning. Are the other arguments to the "'Adobe Flash Player install Manager" another that '-install ', something that is really quiet? "


    Silent installation of Flash Player (using Installer .app bundle)

    To silently install the Flash Player 11.3 or later on Mac, follow these steps:

    1 extract the bundle to install Adobe Flash Player (install Adobe Flash Player.app) of the. DMG file.

    2 open a terminal window and change to the directory where the .app file is saved.

    For example, if the .app file is saved to the desktop of the current user, type:

    CD ~/Desktop

    3. run the installation program contained in the .app file using the following command:

    sudo. / Install Adobe Flash Player.app/Contents/MacOS/Adobe Flash Player install Manager.

    install

    4. type the password to continue the installation.


    Thank you.

    Hello

    You experience this behavior because you use the installer online, download and install Flash Player silently in background, but requires also the user to provide the option to update.  Setup Online is not intended for the distribution of the company.  Distribute Flash Player within your organization, you will need Flash Player (usually free) licenses for distribution.  Apply for a license, go to Adobe Flash Player Distribution. Adobe and complete and submit the form.  After application, you will receive an email with a link to download installers for the distribution of the company.  This includes installers .app both .pkg you can use.  None of these prompts to update the options during installation in silent mode.

    I apologize for not noticing this before, however, I assume that you did not use the installer online since you were distributing Flash Player within your organization.

    --

    Maria

  • Is there a shortcut key for "Flatten Image"?  I just upgraded to CC and again it is not a shortcut for IT... Ugh.  Someone knows something to flatten the Image via the keyboard?

    Is there a shortcut key for "Flatten Image"?  I just upgraded to CC and again it is not a shortcut for IT... Ugh.  Someone knows something to flatten the Image via the keyboard?

    I've been using Ctrl + Alt + Shift + F for years, don't know if it's a default shortcut, or if I assigned.

    You can create your own sets of shortcuts - Edition > keyboard shortcuts.

  • TB 31.5.0 Win 7 after the TAB key for the automatic update no longer creates new address line "write" (enter the done key) but I want the TAB key! Why this keep happening after

    TB 31.5.0 Win 7 after the TAB key for the automatic update no longer creates new address line "write" (enter the done key) but I want the TAB key! Why is - this seems to happen after each automatic update? Cant we get 'option' to use the TAB key to navigate through the lines of address "write"?

    TAB through the fields that exist. It is the function of the TAB.

    Otherwise you could never use TAB to go out in a field for example: subject. It would create an indefinate number of fields and are unable to function as a TAB key.

    TAB does not back to THE fields,
    New crests to THE fields or donkey typing/selection enter/return address, you can use the selection of mouse click.

Maybe you are looking for

  • Install macOS Sierra

    When I click on 'Install', a window pops up saying: "To continue the installation of macOS Sierra, you must enter your password." What matters is this referring?

  • Better and clearer policies

    Hi guys,. Is there a way to change the default fonts on Firefox for the best and clearer? Although I do like a lot, I use IE 9 for some Web sites that does not support Firefox. After visiting a few sites, I realized IE a clearer than Firefox fonts.I

  • Re: Satellite Pro P300 - turning itself off on the password box

    Can someone help with this problem please? Sateliite Pro P300 my daughter will not feed, he died as the power on the password box appears on the screen. I can just make out the word continue until everything goes balnk and the laptop computer shuuts

  • Satellite A30 very noisey with the deaf and the rattling noise!

    26 months now, whenever I have record music or view a page on the internet with a lot of images I can hear the deaf allsorts and clicking on (sounds I think comes before the disk drive) I don't think that the computer is slower, but on a few occasion

  • DVD works but will not play a CD - Vista

    I tried to remove the filters from the registry.  I have download all the drivers from Dell.  It used to work, but I haven't used in a while.  I put a DVD in the drive and it loads immediately.  For a while when I clicked on the drive, he asked for a