[CC/CC2014/Mac] How to prevent the dialog box to hide

Hi all

I have a Connect dialog box to my plugin. When the connection is asuccess, I show an error alert box to the user. After that, when the user closes the alert dialog box, the dialog connection must still be in its place and user can try to log in again. It works absolutely fine until the CS6. But in CC2014 strange thing happens.

When the user closes the error alert box, my connection dialog box just disappears! In fact, it becomes invisible since the closure, all options of InDesign becomes invalid as if a dialog box opens and I have to close the application with the activity monitor. I don't know why this phenomenon occurs? (I did nothing special to my Controller dialog box)

The following simple code has worked before-

void MyLoginDialogObserver::Update(const ClassID& theChange, ISubject* theSubject, const PMIID& protocol, void* changedBy)  {
  if (theChange == kTrueStateMessage) {
       InterfacePtr<IControlView> controlView(theSubject, UseDefaultIID());
       ASSERT(controlView);
       if (controlView) {
            WidgetID widgetID = controlView->GetWidgetID();
            switch (widgetID.Get()) {
                 case kOKButtonWidgetID: {
                    if (Login()) {
                         // login is successful
                        CDialogObserver::Update(theChange, theSubject, protocol, changedBy);
                    }else{
                         // login failed! 
                         CAlert::InformationAlert("Login Failed!");
                         //THE DIALOG SHOULD REMAIN OPEN after the alert box is closed, but it just vanishes!
                    }
                    break;
                 }
                 default : {
                      CDialogObserver::Update(theChange, theSubject, protocol, changedBy);
                      break;
                 }
            }
       }
  }
}

Any help will be very appreciated!

Move this login()) for your DialogController::ValidateDialog ().

BTW, your comment should invoke the Update() inherited in all cases unless it consumes a specific notification, such as a widget in private.

And for the removal of the OK button you really should know what you're doing.

Dirk

Tags: InDesign

Similar Questions

  • How to prevent the dialog box asking how to manage PDFs in Protected Mode is disabled?

    Hello

    So I must be missing a registry key setting somewhere or something (I hope).  Need Adobe Acrobat Reader 10.1.4.  When install us Adobe Acrobat Reader, we disable the Safe_mode due to some problems with it.

    My problem is, when you start Reader or try to view a PDF file embedded in a web page (or elsewhere for that matter), it will appear a dialog box asking you how to proceed.  You are given three options:

    1. Open a PDF file while protected mode this time.
    2. Always open a PDF file while the Protected Mode is disabled.
    3. Never together open PDFs, that protected mode is disabled.

    I need to configure so that option 2 is the behavior of player.

    We are a small shop, I have only 4 people in my team (except me).  We have more than 1,500 machines as public kiosks that need to get this configured when 10.1.4 is installed.  Player is currently obsolete in our deployment, apparently because of this problem keeps pushing the newer versions.

    If anyone has any ideas I'd love to hear them.  I have manually set and looked at the hive in registry for Adobe and have not seen any change in existing keys or the new keys created so I'm not sure it's something that can be made through the registry...

    Looks like the anti-virus was the culprit.  I have to remind these exceptions!  Just a shame that you must add a source of vulnerability as an exception...

  • How do to the dialog box options spelling? (e-mail)

    Using windows mail. When I use the spellchecker, I get a "this language is no longer for the spell check. "Please select another in the dialog box options spelling" message. How do to the dialog box options spelling?

    This language is no longer available for spell checking. Please select another in the Spelling Options dialog.
     

    Change it back.
     

    1. in the main window of Windows Mail, click Tools
    2. the options
    3 spelling
    4. choose a language except English
    5. apply
    6. choose English
    7. apply
     
     
  • How to align the dialog box in the center of a popup programmatically

    Hey,.

    I use jdeveloper 11g release 2.

    Can someone help on how to align the dialog box programmatically a popup?

    Kind regards

    Steve

    Hello

    As far as I know, if we do not have indications of the dialog then displays on the center of the screen by default.

    This will solve your problem?

    Gud luck!

    HA

  • How to resize the dialog box that runs everything in baGetFolder order.

    Dear friends

    I'm very new Director and in collaboration for the project which is already developed by some other providers. in this project, I have to implement the mentioned below requirment so someone can pls help me on this will be greatfull.

    How to resize the dialog box that appears while baGetfolder command triggers. Actualluy problem that I face is that the title of the dialog box extends its width so the title turns out to be incomplete with «...» ", how can I solve this problem? It's very urgent requirment and eagely waiting for your response.

    Thanks in advance

    So how about:

    gBackPath = baGetFolder("/", "Veuillez sélectionner un répertoire de
    sauvegarde pour les fichiers de votre base de données: ", 1, "", 100, 50)
    

    (Note that the parameter 'options' has been changed to 1)

  • How to close the dialog box after pressing the button

    Hello. I added the button

    ButtonWidget

    (

    kButtonWidgetID,

    kSysButtonPMRsrcId,

    kBindNone,

    334, 434, 16, 16 + 24,

    kTrue, kTrue,

    kButtonLabelKey,

    ),

    and in my method in the file... Observer.cpp

    If (theChange is kTrueStateMessage)

    If (theSelectedWidget is kButtonWidgetID)

    This I want close dialogue

    How? I don't want to create CancelButtonWidget. It is must be cutom button.

    Try this in your dialogObserver,

    InterfacePtr myParent (this, UseDefaultIID());

    InterfacePtr ((IDialog*) myParent-> QueryParentFor (IID_IDIALOG)); dialog

    If the dialog box (dialogue)-> Close();

  • "On Mac, I want to return to the dialog box asking"Hide Photoshop or hide"Extra"

    Hi, Merry Christmas

    I got a dialog box when I press Cmd-H, and I decided that to hide Extra.

    I want to see the dialog box again, and it's only for the first time.

    I have reset my keyboard shortcuts and based on dialog boxes reset all the warning in the preference menu, but it does not seem

    To be precise, I ask not how to change his behavior when I press H command.

    I know how to change int menu keyboard shortcuts.

    I just want to see the dialog box again.

    Thanks in advance

    I think that you need to reset the preferences of cc of photoshop by pressing the Shift + Cmd + Option, then start photoshop cc, hold down the keys until the

    you see the dialog box asking if you want to delete the file from photoshop settings and press Yes.

    Then you should see this dialog box after pressing Cmd + M, but only once you see the dialog box until that reset you the preferences of photoshop cc again.

  • How to get the dialog box 'Disconnect network drive' with command shell in WIN7?

    I know, when I run the following shell command can get the dialog box "map network drive".

    RUNDLL32 SHELL32. DLL, SHHelpShortcuts_RunDLL connect

    But what is the command to get the dialogue box "Disconnect network drive"?

    Thank you!

    Hello

    Thank you for visiting Microsoft Community.

    I recommend you post your questions on the TechNet Forums for the best and expertise advice. See the link below or more information:

    https://social.technet.Microsoft.com/forums/en-us/home?category=w7itpro&filter=AllTypes&sort=lastpostdesc

  • 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 );

  • How to make the dialog box "New bookmark" Auto name and the location of the current page?

    I would like to add bookmarks by clicking on the right or on the bar inside a folder of bookmarks or bookmarks, and choosing "new bookmark". This opens a dialog box with the various areas. In the past, the fields title and location were auto-remplies using the title info and the location of the page / tab active. Now, however, all of the fields are empty, making it virtually impossible to use. How do I bring back this feature?

    I am running Firefox 40.0.2 for Windows, and I have the extension classic restaurateur theme installed. I have already looked at all options Classic theme restaurateur and haven't seen anything that would change/conflict with the behavior of bookmark Add.

    Try:

  • How to remove the dialog box "print to file".

    Initially up to and subsequently, I get a dialog box titled 'Print to File' and invites me to enter a "output file name" How can I get rid of this box? No matter what I do, I keep coming back!

    Hi cups WI,

    ·         Since when are you facing this problem?

    ·         Have you checked the problem in safe mode?

    Check if the following might help.

    Step 1: Start the computer in safe mode and check the number.

    Step 2: In safe mode, delete the printer and spool driver files. To do this,

    a. Click Start, click my computer.

    b. navigate to the following locations and then delete all files and folders in the following two folders (where C: is the drive where Windows XP is installed):

    • C:\Windows\System32\Spool\Printers
    • C:\Windows\System32\Spool\Drivers\w32x86

    Report of the results.

  • 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.

  • How to resize the dialog box "Save as"

    I have a portable desktop with InDesign CS 5.5 somehow my dialog box has become huge! and I can't understand how to make it even smaller. (see screenshot below)

    Whenever it is save I hovered my mouse on the edges and corners, and it keeps the circle showing that he is busy and won't let me resize.

    I do not mind, so when I have my laptop connected and use the duel screens at the office, but when I'm going to work from home on the laptop, the box is larger than my screen.

    Unfortunately since this is a work computer I can't do anything to uninstall and reinstall without having to involve the it Department. Is there an option I'm not find or a cool shortcut that I can try to make this dialog box to return to its original size?

    Quick notes:
    InDesign CS5.5 (not longer updated version because it will not work with MediaLink)

    My InDesign is paired with MediaLink which helps to manage the flow of advertising messages that need to be worked on

    example.png

    Try 101 troubleshooting: replace, or 'trash' your InDesign preferences

  • 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

  • How to get the dialog box print forms 6.0.8.8.0 (6i)

    Hello

    I want to get a print dialog box when the button is pressed. For this I need to use win_api_dialog.select_printer that I found in the library of d2kwutil.pll.

    I created a simple form using Developer 6.0.8.8.0.
    I have attached the d2kwutil.pll lib

    I have the d2kwutil.pll in the directory where forms_path is pointing to in my registry.

    There is only a single block and a button on the form. Here is the code on the when button pulled the trigger

    declare
    vcPrinter varchar2 (200);
    vcPort varchar2 (200);
    Start
    win_api_dialog.select_printer (vcPrinter, vcPort, TRUE);
    : PRI. PRI_PRINTER: = vcPrinter;
    : PRI. PRI_PORT: = vcPort;
    end;

    When I run the form, the form compiles well but I
    FRM-40734 internal error PL/SQL ERROR OCCURRED.

    Can you please tell me what must I watch or even step by step instructions on how to get this working. ?

    Thank you
    Laba

    Hi Laba!

    Your form is not the d2kwut.dll, I think.
    Try to put in the \bin folder in your home of developer.

    Cordially and Pauline halla!

Maybe you are looking for

  • Z510 turns off suddenly

    HelloA year ago, I bought a computer laptop lenovo z510. Today, I have a problem that concerns me. After using 3 or 4 hours on my laptop battery suddenly off without notice or low battery alarm, when the pressure gauge indicates remaining 70% (for ex

  • Hexadecimal ASCII

    Hello I try to send a hexadecimal string to my Profibus card. The string represents a serial number I read from a serial.txt file. The a 9-digit number which I converted to a hexadecimal string. To be able to write to the Profibus device I need to se

  • SR1000 controller multimedia Audio and video controller (VGA Compatible)

    Hello I have a Compaq SR1000 and look for drivers for: Video controller (VGA Compatible) Multimedia Audio ControllerSM Bus controller I visited the site of Compaq and HP for the drivers but they all list the following computers: Compaq Presario SR100

  • Windows Live Mail does not work error 0x8CCC0003 0x8CCC0002

    Windows Live Mail has stopped working. I get the following errors: Delete the photo e-mail, create a new and try to send it again. Server: 'shawmail.ok.shawcable.net '.Windows Live Mail error ID: 0x8CCC0002Protocol: SMTPPort: 25Secure (SSL): No. I al

  • Mix PS6110XS and PS6010 in the same pool?

    Hello We think about the purchase of a PS6110XS for a VDI project. (vmware view 5.1) Currently we have a San with 4 PS6010 (SATA/SAS) in the storage pool. Would you recommend to put the new hybrid matrix in the same pool, or should we configure a new