Centered Docking for dialog box?? Using MX

Hi
Could anyone please help??
I have a small dialog box type movie that opens when a user presses Exit. (It's just to confirm that they really want to exit).
I have no problem on my pc, it is a 640 x 480 environment which is full screen when run, the exit dialog opens in the centre of the screen.
However on any other size screen, it is off-centred.
I have tried the option of centred in the properties, but it will not save with that option checked??
Can anyone explain this irritation??
many thanks

The button that opens it should provide a rect for the window. Or the window could determine this itself when opened. For example, in a movie script in the MIAW place the following handlers:
on openWindow
  aw = the activeWindow
  aw.rect = mCenterRectInRect(aw.sourceRect, (the desktopRectList)[1])
end
on mCenterRectInRect r1, r2
  return rect(r2.width - r1.width, r2.height - r1.height, r2.width + r1.width, r2.height + r1.height)/2
end

Similar Messages

  • Hello, the 'Save As' dialog box used to allow the backspace button to go up one level in the directory when the focus is in the folder contents box but it does not work any more, please help.

    Hello, the 'Save As' dialog box used to allow the backspace button to go up one level in the directory when the focus is in the folder contents box but it does not work any more, please help. BTW the same 'Save As' dialog in other applications still allow the backspace button to go up one level in the directory.

    cor-el,
    I kept forgetting and procrastinating about following your instructions, since I have internet access only for limited amounts of time and usually I am busy with important tasks when I am.
    Out of the blue, the problem corrected itself (the Save As box started to open full screen, then shrunk down to a normal size and the edges can now be dragged to a custom size).
    Even the copy and paste problem in the filenaming area seems to have been less troublesome lately even though there have been no updates to Firefox in a few weeks.
    Even though I marked the solution as not helpful, the problem has in fact been resolved. I will save the solution instructions in case the issue returns.

  • How can I automatically close a dialog box using Javascript after I click the OK button to submit it?

    How can I automatically close a dialog box using Javascript after I click the OK button to submit it? I don't want to have to X out of the dialog box after I am done.
    Thanks
    Linda

    JS can not interact with open dialogs in any way, unless it's a dialog
    created in JS using the Dialog object.
    On Thu, Jul 24, 2014 at 11:13 PM, lindaeliseruble <[email protected]>

  • Open a file dialog box using java

    Duncan & Frank or anyone
    Can you please tell, or give me a link, which explains how to open a file dialog box using java, and not webutil.
    I'm trying to read a file on the desktop and update a database table.
    Thanks

    See Open File Dialog on the WEB... If you can get me the full version numbers I can tell you your supported position.
    Regards
    Grant

  • Updated firefox wants to use an uninstalled font for dialog boxes, how to change the font?

    I'm running Redhat and I just upgraded firefox from 3.0 to 17. Webpages display correctly, but the menu options and dialog boxes are empty boxes. I need to either install the font it's looking for, in which case I need to know what font it's trying to use, or tell it to use a different font. I can't read the preferences menu, either. My older version displays just fine; is there a preferences file I can copy to the new directory to fix it?

    This is what the preferences menu looks like. I have tried selected various fonts that I can read, but it doesn't change what's used in the menus.

  • Handling button events for dialog boxes of a used component

    Hello,
    After I call a dialog box/window for the view of the used component, how can I handle the button events of the window that I called?
    I create the window using the method CREATE_WINDOW_FOR_CMP_USAGE of the interface IF_WD_WINDOW_MANAGER. This method returns window reference of type IF_WD_WINDOW.
    Thanks & Regards,
    Reena

    It's very easy.
    Have a look to the document: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9e242bf5-0901-0010-c99c-83c180163c73
    You will find the SUBSCRIBE_TO_BUTTON_EVENT on page 6.
    Sergio

  • FPM : how to subscribe buttons event for Dialog box

    Hi All,
    I am calling a FPM configuration as popup, i have used standard button CLOSE. Now I wanted to assigned my own action to it. How can i achieve this ?
    As in webdynpro we can use  SUBSCRIBE_TO_BUTTON_EVENT, similarly which method i can use in FPM ?
    E.g. in below case i wanted to write my own code on click of OK button.
            LS_DB_PROP-BUTTON_SET = 2.
             LS_DB_PROP-TEXT_FOR_CLOSE_BUTTON = 'Ok'.
             CALL METHOD LO_FPM->OPEN_DIALOG_BOX
               EXPORTING
                 IV_DIALOG_BOX_ID         = LV_WINDOW_ID
                 IS_DIALOG_BOX_PROPERTIES = LS_DB_PROP
                 IO_EVENT_DATA            = LO_FPM_EVENT_DATA
    *           IV_EVENT_ADAPTS_CONTEXT  =
    Thanks in Advance,
    P$G

    Hi Prathamesh,
    Refer to this Opening and Closing FPM Dialog Boxes which might help you.
    For catching the event :
    When cl_fpm_event=>gc_event_close_dialog_box.
           io_event->mo_event_data->get_value(
             EXPORTING
               iv_key   = 'DIALOG_BUTTON_ACTION'
             IMPORTING
               ev_value = lv_string
           IF lv_string EQ 'CLOSE'.
    Write logic here
         endif.
    Hope it might help you.
    Thanks
    KH

  • How to 'Exit' OO ALV screen type 'Model Dialog Box' using 'X' on the top?

    HI Experts,
    I have the below issue in my OO ALV screen type 'Model Dialog Box'...
    The main screen is OO ALV and displays rows of data,
    When select a line(row) and push any buttons
    ( u201CAdd Materialu201D, u201CAdd Binu201D, u201CModify Binu201D, u201CMove Materialu201D, u201CDisplay Batchesu201D)
    the program will take you to next screen and it is a u201CModal dialog boxu201D type.
    That screen has two buttons to exit ( u201CSAVEu201D and u201CCancelu201D ) on the bottom of the screen.
    User would like to exit the screen using u201CXu201D on the top line right corner.
    That u201CXu201D is not on for the u201CModal dialog boxu201D type screen.
    How do I add event to close that screen using u201CXu201D?
    Thanks in advance,
    John.

    data :GR_EVENT_HANDLER    TYPE REF TO LCL_EVENT_HANDLER,
           GR_DIALOG_CONTAINER TYPE REF TO CL_GUI_DIALOGBOX_CONTAINER,
    CLASS LCL_EVENT_HANDLER DEFINITION.
      PUBLIC SECTION.
        METHODS :
        HANDLE_USER_COMMAND FOR EVENT USER_COMMAND OF CL_GUI_ALV_GRID
        IMPORTING E_UCOMM,
        HANDLE_ON_DIALOGBOX_CLOSE FOR EVENT CLOSE OF CL_GUI_DIALOGBOX_CONTAINER
        IMPORTING SENDER,
    ENDCLASS.                    "lcl_event_handler DEFINITION
    CLASS LCL_EVENT_HANDLER IMPLEMENTATION.
    METHOD HANDLE_USER_COMMAND.
      CASE E_UCOMM.
         WHEN 'DBCON'.
            PERFORM DIALOG_DISPLAY.
      ENDCASE.
      ENDMETHOD.                    "HANDLE_USER_COMMAND
      METHOD HANDLE_ON_DIALOGBOX_CLOSE.
        IF NOT SENDER IS INITIAL.
          CALL METHOD SENDER->FREE
            EXCEPTIONS
              OTHERS = 1.
          FREE GR_DIALOG_CONTAINER.
          CLEAR GR_DIALOG_CONTAINER.
        ENDIF.
      ENDMETHOD.                    "handle_on_dialogbox_close
    ENDCLASS.                    "lcl_event_handler IMPLEMENTATION
    FORM DIALOG_DISPLAY .
      DATA : L_TEXT(255),
                  L_LIN TYPE I.
      IF GR_DIALOG_CONTAINER IS INITIAL.
        CREATE OBJECT GR_DIALOG_CONTAINER
          EXPORTING
          PARENT                      =
            WIDTH                       = 400
            HEIGHT                      = 150
            STYLE                       = CL_GUI_CONTROL=>WS_SYSMENU
          REPID                       =
          dynnr                       = '100'
          LIFETIME                    = lifetime_default
            TOP                         = 100
            LEFT                        = 350
            CAPTION                     = 'Error Dialog Box'
          EXCEPTIONS
            CNTL_ERROR                  = 1
            CNTL_SYSTEM_ERROR           = 2
            CREATE_ERROR                = 3
            LIFETIME_ERROR              = 4
            LIFETIME_DYNPRO_DYNPRO_LINK = 5
            EVENT_ALREADY_REGISTERED    = 6
            ERROR_REGIST_EVENT          = 7
            OTHERS                      = 8.
      ENDIF.
      SET HANDLER GR_EVENT_HANDLER->HANDLE_ON_DIALOGBOX_CLOSE FOR GR_DIALOG_CONTAINER.
      REFRESH IG_INDEX_ROWS.
      CLEAR   WG_SELECTED_ROW.
      CALL METHOD GR_ALVGRID->GET_SELECTED_ROWS
        IMPORTING
          ET_INDEX_ROWS = IG_INDEX_ROWS.
      DESCRIBE TABLE IG_INDEX_ROWS LINES L_LIN.
      IF L_LIN GT 0.
        READ TABLE IG_INDEX_ROWS INTO WG_SELECTED_ROW INDEX 1.
        READ TABLE IG_SAL INTO WG_SAL INDEX WG_SELECTED_ROW-INDEX.
        CONCATENATE 'Item' WG_SAL-POSNR 'of Sales Order' WG_SAL-VBELN 'has been selected' INTO L_TEXT
                  SEPARATED BY SPACE.
      ELSE.
        L_TEXT = 'Enter Netvalue greater than 500'.
      ENDIF.
      CALL METHOD GR_HTMLD->ADD_GAP
        EXPORTING
          WIDTH = 1.
      CALL METHOD GR_HTMLD->ADD_TEXT
        EXPORTING
          TEXT = L_TEXT.
      CALL METHOD GR_HTMLD->NEW_LINE.
    Display the data
      CALL METHOD GR_HTMLD->DISPLAY_DOCUMENT
        EXPORTING
          PARENT = GR_DIALOG_CONTAINER.
    ENDFORM.                    " DIALOG_DISPLAY

  • Print Dialog Box using jdk1.4

    Is there a way to bring up print dialog box in jdk1.4. I am using the new api( javax.print.* ) for printing. But dont know how to get an interface to the Dialog Box.
    thx
    K

    Our printing functions (PrintCtrl, PrintPanel, etc.) will bring up the print dialog if you select to show it in the function call. If you weren't using our print function, you can bring up the Windows print dialog box with the Windows SDK function PrintDlg. Consult SDK documentation for help with this function.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

  • Open/save dialog box using javascript.

    Hi,
    working on apex4.1
    How i can display open / save dialog box when click on button or link using javascript.
    Thanks & Regards
    Vedant
    Edited by: Vedant on Jan 27, 2013 10:20 PM

    Hi,
    I am using model dialog box.
    on page header i have copy The code as given in this http://jqueryui.com/dialog/#modal-message link
    //  page header code
    <!doctype html> <html lang="en"><head>  <meta charset="utf-8" />  <title>jQuery UI Dialog - Modal message</title>  <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" />  <script src="http://code.jquery.com/jquery-1.8.3.js"></script>  <script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js"></script>  <link rel="stylesheet" href="/resources/demos/style.css" />  <script>  $(function() {    $( "#dialog-message" ).dialog({      modal: true,      buttons: {        Ok: function() {          $( this ).dialog( "close" );        }      }    });  });  </script></head><body> <div id="dialog-message" title="Download complete">  <p>    <span class="ui-icon ui-icon-circle-check" style="float: left; margin: 0 7px 50px 0;"></span>    Your files have downloaded successfully into the My Downloads folder.  </p>  <p>    Currently using <b>36% of your storage space</b>.  </p></div> <p>Sed vel diam id libero <a href="http://example.com">rutrum convallis</a>. Donec aliquet leo vel magna. Phasellus rhoncus faucibus ante. Etiam bibendum, enim faucibus aliquet rhoncus, arcu felis ultricies neque, sit amet auctor elit eros a lectus.</p>  </body></html> My Button name is "DOWNLOAD" and on button actions "REDIRECT TO URL"
    on URL TARGET value is ==javascript: myFunction();
    where i have to write this code to bind my apex buttons with dialog box.
    apex.submit(myRequest);the steps i have written above, am doing right or not? Please help to place the code in apex with a right way.
    Thanks & Regards
    Vedant
    Edited by: Vedant on Jan 28, 2013 12:53 AM

  • How to give save as dialog box using servlet?

    hello,
    i am building one application where i am generatinfreport in excel format.
    now the file generated is output.xsl.
    this is in c:\bea\wlserver6.1 directory.
    now i want to write a servelt get this file from location given above and give user Save As dialog box.
    can anybody provice me sample code from this....
    thank you.

    Hi,
    Hope the following code snippet helps, Put this in your doGet/doPost method.
    FileInputStream fileInputStream = null;
    ServletOutputStream out = response.getOutputStream();
    String srcfile = "c:\bea\wlserver6.1\myxsl.xsl";
    String destfile = "myxsl.xsl";
    response.setContentType("text/xml");
    response.setHeader("Content-Disposition","attachment; destfile=\""+ filename + "\"");
    try {
         fileInputStream =new FileInputStream(srcfile);
         int i;
         while ((i=fileInputStream.read()) != -1) {
              out.write(i);
    }catch (Exception e){
         System.err.println (e);
    }finally{     
         fileInputStream.close();
         out.close();     
    Good Luck,
    Rajesh

  • Help centering picture in a box using CSS

    I have a picture as background in the layer.. but i'm trying
    center the picture with box together whenever user resize or change
    their display example, if user change from their display from 1024
    x 768 to some wide screen display it is still center of the page
    please help thanks

    Use CSS to center it, e.g., background-position:center.
    Please make sure you familiarize yourself with the use of CSS
    before trying
    this.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "fatjedi" <[email protected]> wrote in
    message
    news:f9658m$quu$[email protected]..
    >I have a picture as background in the layer.. but i'm
    trying center the
    > picture with box together whenever user resize or change
    their display
    > example,
    > if user change from their display from 1024 x 768 to
    some wide screen
    > display
    > it is still center of the page
    > please help thanks
    >

  • How do I customize a Dialog Box theme for my macbook pro?

    I am tired of the gray dialog boxes. If possible, I would like to use a picture. I also want a different color bar on the top of the screen. I also would like a different color scroll bars. I also want different options (as in colors) for cursors. Thank you!

    I have no doubt that someone with too much time on his hands has written something you could use to customize your dock, cursors, dialog boxes, menu bar, and all manner of other things. What I'm suggesting is that that's a dumb thing for him and you to waste time and energy on, and a silly and completely unnecessary risk with little or no benefit. If you have things to get done with your computer, do them, and don't get bogged down fooling with the eye candy.
    And by the way, no one owes you answers to your questions. Everyone here is a volunteer.

  • How do i add a download action for dxf files. firefox assumes its a text file and just opens it with no download action dialog box

    I want to add a download action for dxf files so they open in Autodesk trueview. The steps described here (http://support.mozilla.com/en-US/kb/Managing%20file%20types#w_adding-download-actions) say to click on a link for the filetype you want to add an action to but firefox thinks the dxf is a text file and just opens it in a new tab with no download action dialog box.

    Use the right-click context menu and choose "Save Link As" or hold down the alt key and left-click the link.

  • Dialog box pblm in for loop

    pl check this code sample at once..
    for(int i = 0 ;i< sDoc.sAwData.smVec_List.size() ; i++)
         st.execute(sqlQuery);
         System.out.println("Tables Created ");
         JOptionPane.showMessageDialog (this,"Tables Created","Tables Title",JOptionPane.WARNING_MESSAGE);
    i am executing the sqlQuery in for loop
    as i am keeping the st.execute(sqlQuery) in for loop usually it will iterates that many no of times according to "i";
    i also have to display the Dialog box using JOptionPane at one time only.
    when the sqlQuery is successfully executed.
    as i kept that dialog in for loop it is displaying morethan one time according to "i";
    is there anyway to display that dialog at single time ??
    pl give me some suggestions and if possible along with some sample code using for loop
    thanks in advance

    If you want to display the dialog box only once, put
    it outside the loop!!Thankyou
    but the pblm is when i keep that dialog box in outside the for loop, that will display even the sql query fails to execute the statement.
    i want to display that dialog if the sql query executing
    successfully.
    thanksinadvance
    yours
    rajesh

Maybe you are looking for

  • How many computers can I put iWork on?

    I have two computers and one iWorks. Can I install it on both? I imagine if I'm not supposed to, it won't let me. I don't wan't to be stealing it. Thanks!

  • Nokia Asha 308 Gallery problem

    Nokia asha 308, everytime I  tap on the gallery app it says "Unable to preform operation" any suggestions?

  • VKP0 is not to be maintained as  mandatory condition while creating IDOC

    We have a very awkward need from our client.The bussiness doesnt want the condition type VKP0 to be mandatory condition while creating IDOC for article master data. In the bussiness terms they send some articles to POS without creating price.They don

  • Cursor disappeared on PDF files

    Hello,           Am facing problem with an attached PDF files when recieved in BB 9000. The PDF file contains HREF links.... the user cant open HREF in that PDF cause the hand wheel disappeared !!!. Any solution for that ??

  • Best wasy to move OC4J from Production to Test MidTier

    I've read the documents but I am still lost on the best way to move a OC4J instance to another MidTier I have 3 separate OC4J instances that are deployed for 3 separate divisions that contain different apps. What is the easiest way to move them to a