Output manual is not display the dialog box

Hello

I try to display a dialog box to the exit, but it does not work. Here is my code.

import bb.cascades 1.0

import bb.system 1.0

import bb.cascades.advertisement 1.0

{Page}

Menu.Definition: MenuDefinition {}

settingsAction: {SettingsActionItem}

onTriggered: {}

}

}

}

{Of container

{Of container

ID: mainContainer

layout: {DockLayout}

}

horizontalAlignment: HorizontalAlignment.Fill

verticalAlignment: VerticalAlignment.Fill

{Of container

ID: bgContainer

verticalAlignment: VerticalAlignment.Fill

horizontalAlignment: HorizontalAlignment.Fill

ImageView {}

objectName: "bgImage".

imageSource: ' images/bg_green.png.

scalingMethod: ScalingMethod.AspectFill

verticalAlignment: VerticalAlignment.Fill

horizontalAlignment: HorizontalAlignment.Fill

}

}

{Of container

ID: contentContainer

leftPadding: 20.0

topPadding: 10.0

rightPadding: 20.0

bottomPadding: 0.0

verticalAlignment: VerticalAlignment.Fill

horizontalAlignment: HorizontalAlignment.Fill

{Of container

ID: titleContainer

verticalAlignment: VerticalAlignment.Top

horizontalAlignment: HorizontalAlignment.Fill

layout: {StackLayout}

direction: LayoutOrientation.LeftToRight

}

topPadding: 10.0

{Of container

ID: imageContainer

leftPadding: 20.0

topPadding: 10.0

bottomPadding: 10.0

rightPadding: 20.0

verticalAlignment: VerticalAlignment.Center

horizontalAlignment: P

ImageView {}

ID: icon

imageSource: ' images/ic_safe.png.

verticalAlignment: VerticalAlignment.Center

horizontalAlignment: P

objectName: "stateImage."

}

}

{Of container

ID: topTextContainer

verticalAlignment: VerticalAlignment.Center

{Label

text: 'SAFE'

textStyle.color: Color.White

textStyle.fontSize: FontSize.PointValue

textStyle.fontWeight: FontWeight.Bold

objectName: "stateLabel."

textStyle.fontSizeValue: 17.0

}

}

}

{Of container

verticalAlignment: VerticalAlignment.Center

horizontalAlignment: P

layoutProperties: {StackLayoutProperties}

spaceQuota: 1.0

}

{Of container

horizontalAlignment: P

verticalAlignment: VerticalAlignment.Center

layoutProperties: {StackLayoutProperties}

spaceQuota: 1.0

}

layout: {DockLayout}

}

{Of container

verticalAlignment: VerticalAlignment.Center

horizontalAlignment: P

{Of container

ID: usedContainer

{Of container

ID: percentContainer

{Label

ID: percentLabel

text: "74."

textStyle.color: Color.White

textStyle.fontSize: FontSize.PointValue

textStyle.fontWeight: FontWeight.Normal

textStyle.fontSizeValue: 40.0

textStyle.textAlign: TextAlign.Center

textStyle.fontStyle: FontStyle.Normal

objectName: "percentLabel."

}

}

{Of container

leftPadding: 30.0

rightPadding: 30.0

verticalAlignment: VerticalAlignment.Center

horizontalAlignment: P

ImageView {}

imageSource: ' images/ic_percentage.png.

verticalAlignment: VerticalAlignment.Center

horizontalAlignment: P

}

{Label

text: 'used '.

textStyle.color: Color.White

textStyle.fontSize: FontSize.PointValue

textStyle.fontSizeValue: 8.0

}

}

layout: {StackLayout}

direction: LayoutOrientation.LeftToRight

}

verticalAlignment: VerticalAlignment.Top

}

{Of container

ID: remContainer

verticalAlignment: VerticalAlignment.Center

horizontalAlignment: HorizontalAlignment.Fill

{Of container

layout: {StackLayout}

direction: LayoutOrientation.LeftToRight

}

verticalAlignment: VerticalAlignment.Center

horizontalAlignment: P

{Of container

ID: countContainer

rightPadding: 10.0

leftPadding: 10.0

topPadding: 0.0

verticalAlignment: VerticalAlignment.Bottom

{Label

ID: countLabel

text: "7."

textStyle.color: Color.White

textStyle.fontSize: FontSize.PointValue

textStyle.fontSizeValue: 14.0

objectName: "daysLabel."

}

}

{Of container

verticalAlignment: VerticalAlignment.Bottom

bottomMargin: 0.0

bottomPadding: 12.0

{Label

text: "days left".

textStyle.color: Color.White

objectName: "daysInfoLabel."

textStyle.fontSize: FontSize.PointValue

textStyle.fontSizeValue: 8.0

}

}

}

{Of container

horizontalAlignment: P

{Label

ID: rangeLabel

text: "2 February - 1 March"

textStyle.color: Color.White

objectName: "daysRangeLabel."

textStyle.fontSize: FontSize.PointValue

textStyle.fontSizeValue: 8.0

}

}

}

}

}

}

{Of container

verticalAlignment: VerticalAlignment.Bottom

horizontalAlignment: P

layout: {StackLayout}

direction: LayoutOrientation.LeftToRight

}

{Of container

horizontalAlignment: P

layout: {StackLayout}

direction: LayoutOrientation.TopToBottom

}

topPadding: 10.0

bottomPadding: 10.0

verticalAlignment: VerticalAlignment.Bottom

layoutProperties: {StackLayoutProperties}

spaceQuota: 1.0

}

{Of container

horizontalAlignment: P

ImageView {}

imageSource: ' images/ic_cell.png.

verticalAlignment: VerticalAlignment.Center

horizontalAlignment: P

visible: true

}

}

{Of container

ID: cellContainer

horizontalAlignment: P

topPadding: 5.0

bottomPadding: 5.0

visible: true

{Of container

horizontalAlignment: P

{Label

text: "147.4 MB.

textStyle.color: Color.White

textStyle.fontWeight: FontWeight.Bold

objectName: "cellTotalLabel."

textStyle.fontSize: FontSize.PointValue

textStyle.fontSizeValue: 8.0

}

}

{Of container

topPadding: 5.0

bottomPadding: 5.0

horizontalAlignment: P

{Label

text: "140 MB, 7.4 MB out."

textStyle.color: Color.White

textStyle.fontSize: FontSize.PointValue

verticalAlignment: VerticalAlignment.Bottom

objectName: "cellCountLabel."

textStyle.fontSizeValue: 6.0

}

}

}

}

{Of container

horizontalAlignment: HorizontalAlignment.Fill

layoutProperties: {StackLayoutProperties}

spaceQuota: 1.0

}

layout: {StackLayout}

direction: LayoutOrientation.TopToBottom

}

topPadding: 10.0

bottomPadding: 10.0

{Of container

horizontalAlignment: P

ImageView {}

imageSource: ' images/ic_wifi.png.

verticalAlignment: VerticalAlignment.Center

horizontalAlignment: P

}

}

{Of container

ID: wifiContainer

horizontalAlignment: P

bottomPadding: 5.0

topPadding: 5.0

{Of container

horizontalAlignment: P

{Label

text: '26.6 MB.

textStyle.color: Color.White

textStyle.fontWeight: FontWeight.Bold

textStyle.fontSize: FontSize.PointValue

textStyle.fontSizeValue: 8.0

objectName: "wifiTotalLabel."

}

}

{Of container

topPadding: 5.0

bottomPadding: 5.0

horizontalAlignment: P

{Label

text: "20 MB, 6.6 MB out."

textStyle.color: Color.White

textStyle.fontSize: FontSize.PointValue

verticalAlignment: VerticalAlignment.Bottom

objectName: "wifiCountLabel."

textStyle.fontSizeValue: 6.0

}

}

}

}

}

{Of container

objectName: "bannerContainer."

horizontalAlignment: P

}

}

}

}

onCreationCompleted: {}

Application.autoExit = false;

Application.manualExit.connect (onManualExit);

}

function onManualExit() {}

Show)

}

attachedObjects:]

{SystemDialog}

ID: dialogue

Title: «DataCheck Pro»

body: "" the application must always be running to make estimates as accurate as possible. "" Are you sure to terminate the application? »

confirmButton.label: "Close"

onFinished: {}

If (dialog.result == 3) {}

Dialog.Cancel ();

} else {}

Dialog.Cancel ();

Application.Quit () / / myPlayer.stop)

}

}

}

]

}

Help, please?

Solved by putting setClosePrompt()

Tags: BlackBerry Developers

Similar Questions

  • Could not open the dialog box of .msi files saying find a program to open the file type

    In time, I used msi files to install many programs. But I know longer really since then, msi files could not open. Now, I can't open the msi installer, which I had used to install programs. When I click on the msi file, it displays a dialog box saying find a program to open the file type.

    Hello

    1. Were there some recent changes to the computer before the show?

    Method 1: I suggest you unregister and re - register the windows setup program and check if that helps you. To do this, please follow the steps below:

    Unregister and register the Windows Setup program again

    (a) click Start, click run and then type cmd in the dialog box, and then click command prompt.

    (b) at the command prompt, type the following and press ENTER after each line:

    MSIExec /Unregister

    MSIExec/regserver

    Method 2: When you run an .exe on a Windows XP, Windows Vista or Windows 7 computer file, the file can start another program.

    http://support.Microsoft.com/kb/950505/

    Method 3: Change default programs using Set Program Access and computer defaults:
    http://Windows.Microsoft.com/en-us/Windows7/change-default-programs-using-set-program-access-and-computer-defaults

    Changing the programs Windows uses by default: http://windows.microsoft.com/en-US/windows7/Change-which-programs-Windows-uses-by-default

    Hope this information is useful.

  • Firefox plays after clicking on links for her instead of display the dialog box for play/download mp3/wav

    Firefox when trying to play wavs/mp3s after clicking on link to it instead of display the dialog to open/download. In preferences on the applications tab, I always chose "ask" in the types of wav and mp3 files, but it does not solve this problem.

    This has happened

    Each time Firefox opened

    == I'm not sure

    Firefox will play the file if you have a drive installed that supports the mime type that the server sends to this file.

    See "File handling in Firefox 3 and SeaMonkey 2": http://kb.mozillazine.org/File_types_and_download_actions

  • My selection tool does not display the transformation box?

    I don't know what I did but my selection tool does not display the box of the scale (free transform). I have to continue to use the shortcut of 'e' and it's really annoying advice on how to fix it?

    Thank you!!

    I figured it shift + command + b

    thaks fixes everything!

  • How to display the dialog box before uninstalling an application?

    Hello

    I want to display an alert dialog box before an application is uninstalled, has no idea how to do this?

    If not how can I detect a first run of an application after the installation?

    I have not tried out, just an idea.

    (A) there is a class called CodeModuleManager can check his stats module.

    So, in your application context thread to check his stats module.

    If it is marked as deleted, you can extract a global dialog box.

    (B) to implement SystemListener2, when the fastReset event occurs, you can check the stats module, if it is marked as deleted.

    you pop up GlobalDialog and force the user to interrupte.

    See you soon.

  • By clicking on "remove properties and personal information" does not open the dialog box 'properties to remove.

    Hi all!  I'm new here.  Hope someone could help me with my problem.  I'm using Windows 7 Home Basic x 64.

    For any file that I did a right click to view properties--> select Details tab--> click on "remove properties and personal information. I do not see the Remove Properties dialog box will appear. Instead, refreshes just the Properties window. I restarted my laptop already, but the bug does not go far.  Tried to ask for help from my laptop to the manufacturer and they told me to reinstall the OS, I did.  But the bug is still there.

    Could this be something to do with my registry?  Tried searching solutions in other forums / Speakup, but found none.  Would really appreciate your help.  :)

    Right, I've now solved my problem.  Somehow, obtained data stripped of these two keys:

    HKEY_CLASSES_ROOT\ * \shell\removeproperties
    HKEY_CLASSES_ROOT\ * \shell\removeproperties\DropTarget
    Those who have problems with the "Remove properties" dialog box might try to check these keys, which must contain the following data:
     
    [HKEY_CLASSES_ROOT\ * \shell\removeproperties]
    "ProgrammaticAccessOnly"="Apartment".
     
    [HKEY_CLASSES_ROOT\ * \shell\removeproperties\DropTarget]
    "CLSID" = "{09a28848-0e97-4cef-b950-cea037161155}".
  • MenuItem to FileExplorer could not open the dialog box or PopupScreen.

    Hello

    I would like to know why I can't open a dialog box or a menuitem PopupScreen in file Explorer.

    The use of the debugger I see that there is no ancestral error and execution to get there in the Dialog.alert("").

    is there a solution?

    See this article.

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

  • How to display the dialog box?

    Hello

    I checked the box to hide an error dialog box, how do I show it again?

    Thank you

    Edition - Preferences - general, look down for this button:

    -Christmas

  • Display the dialog box when you open a report

    Hi all

    Currently, in one of the dashboard, for a particular report, I selected the link display in a separate window (properties-> display options - > link in a separate window). Since then, all the print, download links are displayed at the bottom of the report, users are Dungeon forget these links. I tried to post the links at the top of the report and tried the solution that I found on the forum. but, no luck.

    Instead, I want to display a warning message when they click on any part of the report in the newly opened window (since then, I've selected display options - > link in a separate window). If I create an alert by using narrative view box, the alert box will be open, if I click on that particular place.

    But, my requirement is, should the popup box are displayed by saying: "Please scroll to the bottom of the page to download/print the report" when users click on any where, on the report.

    Is this possible at all? I appreciate your help in this regard.

    Thanks in advance.

    -Is it possible to have the following views
    View 1: static text + pivot table1
    See 2: narrative view + pivot table2?

    In other words, is it possible to have fixed views as a point of view? Please notify.

    Thanks in advance.

    Yes, you can.

    (1) create all your individual points of view.

    (2) put the static text and Pivot Table in the Layout of the compound.

    (3) duplicate available composed to get Compound page layout: 2

    (4) while Compound layout: 2 delete and add narrative view and Pivot Table views: 2.

    (5) duplicate Mateur mode once more for the compounds page layout: 3

    (6) create the view selector with implantation and setting compound in page: 2 compound as the two points of view. Name them appropriately.

    (7) in the Layout composed: 3, delete all notices and add selector display.

    Now, users can switch between the two sets of views.

    Edited by: David_T on October 5, 2010 14:48

  • Hi, SEND my button has disappeared from my Apple Mail & procedure of customization of the DISPLAY toolbar displays the dialog box with no icon of the button SEND to drag-and - drop on my desk.

    G, day,

    I have an iMac 21 "and use Applemail. However, my mail SEND icon is spent on the missing list and raise VIEW / 'Customize toolbar' does not contain the icon SEND so that I could drag-and - drop to the right / top corner where it should belong. Any help would be welcome.

    PS My incoming mail has also stopped. Moderate P.C. Savvy.

    Kind regards.

    Alan B.

    The button send when you are working in a new message or a reply. It is not in the view of the overall message.

    Missing when you create a new message or reply to a message?

  • displaying the dialog box "your Session will time out, extend or close"?

    Hello!

    We have a duty to post a warning to users only (1 minute) before the session is going to expire and ask the user if he wants to extend the session or close the session (in which case, we close the browser window). We were able to come up with a likely solution but would like to know what other people are doing / will be in similar scenarios.

    Here's what we came with:

    1. on each page load we set/update a cookie that is supposed to follow the session expires. And we have a javascript timer that counts down to the inactivity of the user. In the event of any PPR on the page, then we plan to add a hook to the PPR javascript calls, so that we can update the cookie expires not only on page load/refreash, but each call PPR performed on the server.

    We have a concern that we are all only javascript function on the client side. Is our approach in the right direction? Is there a better way to achieve the same? Are there issues of security/traps involved in our design?

    2. I read in some articles/forum discussions we can poll the server on a regular interval to see the time remaining for the session expires, and as soon as we have the time to last minute, we can display a popup javascript to the user. But I doubt that wouldn't poll itself refresh the activity of users on the server and reset the normal session on each poll timeout? In this case would not always get the same information of time remaining for each survey? I misunderstood something here? some explain how to implement from session expiration time of the poll on the server?

    3. all new ideas are welcome!

    Thank you and best regards,

    Samba

    Hello

    Well, if you use the af:poll command, then the session never expires because from a server point of view, the user frequently sends a request. So if you prefer this option, then you will need to expire the invalidate() programmatically by calling session on the session

    javaScript is the only option that I can imagine that works without a vote.

    Frank

  • Display a dialog box after the ejection of a USB drive, saying the car was ejected

    Hi, would someone please tell me how to change the applescript below to eject my USB in 2 ways, either by waiting 30 seconds by pressing the button "YES". Then, once the disc has been ejected another dialog box would appear to say 'eject disk '. If 'NO' button has been activated the reader wouldn't be ejected. My USB is indicated as (the present book).  Thanks in advance for any help.

                                                                tell application 'Finder '.

    display the dialog box "Eject USB drive?" default button 1 with the title "Eject?" buttons {'yes', 'No'} give up after 30

    If the button returned of the result is 'yes' then ejection of the this book

    tell the end

    Here:

    Tell application "Finder".

    Display dialog "Eject USB Drive?" buttons {"Yes", "No"} default button 1 with the title "Eject?" give up after 3

    If the result back button is 'yes' or abandoned then of the result

    This book of ejection

    display the dialog box 'Disc ejected.'

    end if

    tell the end

    (143586)

  • After closing the dialog box screen, menu by default is displayed

    I have a simple program that consists of a screen and a button. When the button is clicked, it displays a dialog box in the button handler. Once the dialog box is closed, the parts of the menu are displayed. Very strange.

    Here's the code that displays the dialog box:

    public void fieldChanged( Field field, int context )
        {
            String label = "";
    
            if ( field instanceof ButtonField )
            {
                label = ((ButtonField)field).getLabel();
            }
    
            //if this was the login button, display the popup.
            if ( label.equalsIgnoreCase( "Login" ) )
            {
                String icon = "questionmark.png";
                Bitmap bitmap = Bitmap.getBitmapResource( icon );
                String [] options = new String [] { "Yes", "No", "Cancel" };
                int [] optionIndexes = new int [] { Dialog.YES, Dialog.NO, Dialog.CANCEL };
                Dialog dialog = new Dialog( "Select an option", options, optionIndexes, optionIndexes[2], bitmap );
                dialog.doModal();
    
            }
    
        }
    

    Once the dialog box is closed, this is:

    I have no idea why this show after the closure of the dialog box. Any ideas?

    Well done

    I think that many people would find answers to their questions if they tried harder with search.  And you find faster as well!  And whenver I creative search, I usually find something else useful that I was looking for.  Kind of like Google where you can go off on a complete tangent...

    In any case, can mark you this as resolved?  See you soon

  • Prevent the dialog box fill with scripts

    Hello.

    I have an automation script that fills some pixels on a layer. Everything works, but sometimes it displays the dialog box to fill for the parameters with some png files (not all). I need to get rid of the dialog box. Is it possible to do this with the script? for example a default option?

    Thank you!

    Photoshop 2015.5 CC

    Windows 8.1

    Well, look's like I solved it the problem.

    The dialog box showed on the png files, Image-> Mode-> indexed color.

    So I added prior to filling, the following script, which will ensure the RGB Image Mode:

    var idCnvM = charIDToTypeID( "CnvM" );
    var desc36 = new ActionDescriptor();
    var idT = charIDToTypeID( "T  " );
    var idRGBM = charIDToTypeID( "RGBM" );
    desc36.putClass( idT, idRGBM );
    executeAction( idCnvM, desc36, DialogModes.NO );

  • Ignore the dialog box find sequence

    When running if TestStand isn't the .seq file, it display the dialog box to search for dialogue .seq.

    I'd like to display this dialog box to the user and continue execution with the next available sequence.

    Is there an option that can turn off the display of this dialog to the user?

    Thank you

    VS

    Ah, found the option - command prompt to search for files in the preferences.

    -VS

Maybe you are looking for