Professional Web Applications Themes

Non-modal sheet dialog??? - Mac Programming

Is it possible or recommended to have a non-modal dialog sheet ? Denis...

  1. #1

    Default Non-modal sheet dialog???

    Is it possible or recommended to have a non-modal dialog sheet ?


    Denis


    Denis Guest

  2. #2

    Default Re: Non-modal sheet dialog???

    In article <vif.com>,
    "Denis Work" <net> wrote:
     

    Sheets, that is dialogs that are attached to doent windows, are
    inherently window modal: you can't do anything else with that window,
    you must interact with the sheet. However, you can keep working in other
    windows.

    Windows have a single sheet attached to them at a time. Think of closing
    a modified window in, for example, TextEdit: first you get the
    save/discard/cancel sheet, then, if you choose "Save", the first sheet
    is destroyed, then you get the Save As sheet. If you push the "new
    folder" button, you don't get a third sheet, but you do get an
    application modal dialog box, not a sheet.
    David Guest

  3. #3

    Default Re: Non-modal sheet dialog???

    Thanks,

    Can you tell me how do you establish the modal relation to a window/dialog?
    For a non-sheet dialog.


    Denis



    "David Phillip Oster" <org> wrote in message
    news:sf.sbcglobal.net... 
    >
    > Sheets, that is dialogs that are attached to doent windows, are
    > inherently window modal: you can't do anything else with that window,
    > you must interact with the sheet. However, you can keep working in other
    > windows.
    >
    > Windows have a single sheet attached to them at a time. Think of closing
    > a modified window in, for example, TextEdit: first you get the
    > save/discard/cancel sheet, then, if you choose "Save", the first sheet
    > is destroyed, then you get the Save As sheet. If you push the "new
    > folder" button, you don't get a third sheet, but you do get an
    > application modal dialog box, not a sheet.[/ref]


    Denis Guest

  4. #4

    Default Re: Non-modal sheet dialog???

    In article <vif.com>,
    "Denis Work" <net> wrote:
     

    Followups set to just comp.sys.mac.programmer.help.

    In the old days, the procID field of the DLOG resource would determine
    whether a dialog was modal or not.


    dBoxProc // normal modal dialog,
    movableDBoxProc // movable modal dialog


    (And of course, you'd run it with the ModalDialog() system call (or
    IsDialogEvent(), DialogSelect(), .)

    In this new world of Carbon, if you look in MacWindows.h, you'll find
    the SetWindowModality() system call doented.
    David Guest

  5. #5

    Default Re: Non-modal sheet dialog???

    Got it to work, thanks.

    It appears that my problem was not even there.
    All I did is remove the Application Event handler, which I do not need (It
    is a twain module).
    And everything works smooth now.

    Denis


    "David Phillip Oster" <org> wrote in message
    news:sf.sbcglobal.net... [/ref]
    window/dialog? 
    >
    > Followups set to just comp.sys.mac.programmer.help.
    >
    > In the old days, the procID field of the DLOG resource would determine
    > whether a dialog was modal or not.
    >
    >
    > dBoxProc // normal modal dialog,
    > movableDBoxProc // movable modal dialog
    >
    >
    > (And of course, you'd run it with the ModalDialog() system call (or
    > IsDialogEvent(), DialogSelect(), .)
    >
    > In this new world of Carbon, if you look in MacWindows.h, you'll find
    > the SetWindowModality() system call doented.[/ref]


    Denis Guest

  6. #6

    Default Re: Non-modal sheet dialog???

    "Denis Work" <net> wrote in message news:<vif.com>... 

    No, you can only have non-modal dialogs. Sheets are by design modal.

    Thorsten
    Thorrsten Guest

  7. #7

    Default Re: Non-modal sheet dialog???

    On Thu, 22 Jul 2004 05:03:07 +1000, David Phillip Oster wrote
    (in article <sf.sbcglobal.net>):
     
    >
    > Sheets, that is dialogs that are attached to doent windows, are
    > inherently window modal: you can't do anything else with that window,
    > you must interact with the sheet. However, you can keep working in other
    > windows.[/ref]

    <nitpick>
    The user cannot interact with the window directly, there's nothing
    stopping the user firing an application that changes the
    window/doent, though. [Just tried in TextEdit with the "PrintŠ"
    sheet over the only doent, then used a script to change the size
    of the selection from 14.7pts to 114.7pts; then brought the 'save
    asŠ' sheet up, and changed the size to 1.7pt]
    </nitpick>

    I shouldn't say things like that, no-one will trust my scripts :-(

    [snip]

    Have Fun
    Martin
    --
    aa #1792

    Almost always SMASHed

    Martin Guest

Similar Threads

  1. Parent window for modal dialog
    By Mark_Cleveland@adobeforums.com in forum Adobe Acrobat SDK
    Replies: 2
    Last Post: July 31st, 07:04 PM
  2. problem with non modal ADM dialog
    By SeanWang@adobeforums.com in forum Adobe Acrobat SDK
    Replies: 1
    Last Post: April 9th, 09:43 AM
  3. Modal Dialog
    By Vidar Petursson in forum ASP.NET Building Controls
    Replies: 0
    Last Post: April 14th, 12:51 PM
  4. Modal dialog Filters under X?
    By Mike H. in forum Mac Programming
    Replies: 3
    Last Post: September 25th, 06:19 PM
  5. Submit form from modal dialog
    By martin de vroom in forum ASP
    Replies: 2
    Last Post: July 16th, 10:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139