Popup window like dialog and opendialog

    May 17 2011 | 10:56 am
    Is it possible to have a pop-up window like dialog and opendialog show (or something like it), but with just information and no input possibilities?

    • May 17 2011 | 11:21 am
      just use a subpatcher. you can use "open" to [pcontrol] to pop it open, either by mouse click or some other means, and you can control the appearance (like floating/non-floating, title bar/no bar, etc.) with [thispatcher] inside the subpatch. Without a title bar, you'll need a way to close the window: again, "close" to [pcontrol], but it has to go out an outlet to the [pcontrol] that's outside...it closes itself from the inside, seems a little weird but works fine.
      I use [pcontrol] so that I can hide the actual "p subpatch" object, and make the open button a nice-looking textbutton labeled "Help" or whatever's appropriate. You can center the text in [textbutton] which makes it look nicer than a message box IMO, and there's no text wrapping problems.
      with a subpatch of course you can also have input if you want...really, you can have pretty much anything :)
    • Feb 13 2012 | 10:08 pm
      but how to get that bottom menu (lock, new object, zoom, etc.) away?
    • Feb 13 2012 | 10:22 pm
      send message window flags notitle, window exec to thispatcher for removing titlebar. you get rid of the bottom menu easily in the patcher inspector! just uncheck: show toolbar on open. you may want to check open in presentation too ? check the helpfile for [thispatcher]
    • Feb 13 2012 | 10:59 pm
      it doesn´m matter if presentation mode, the bottom menu is there in both.
      but it's ok. i just asked for a standalone which someone will use who's just using Max' runtime (which has no bottom menu).
    • Feb 13 2012 | 11:16 pm
      no it shouldn`t be there if you save the patcher with "show toolbar on open" in the patcher inspector! i did it many times
    • Feb 13 2012 | 11:21 pm
    • Feb 14 2012 | 12:15 am
      ok thanks, i'll have it for future.
    • Nov 18 2012 | 2:30 am
      I'm also wondering if there is a dialog function as the OP described.
      I'd like to create a very basic warning popup that describes the issue, then requires the user to click the box "okay" (or whatever the text would be) in order to be allowed to continue using the patch. Similar to when you, say, "save as" in Max and you're unable to interact with any windows until the "save as" window is closed.
      I'm aware that you can create a patcher without any menus, status bars etc. to do a similar function, but this method still allows the user to operate the patch while this warning dialog window is open.
      Any suggestions?
    • Jun 07 2015 | 5:51 am
      It's called a 'modal dialog'. Would be a nice thing to have.
      I'd just like to be able to have a max window that wouldn't allow the toolbars to be unpinned. I have a small patch without menu or titlebar that I use for navigation. I want it as small as possible, but when mousing I'm constantly unpinning the toolbars on every side.
      Is there any way to make these toolbars stay hidden?
    • Sep 10 2015 | 4:40 pm
      +1 for a modal dialog! system dialogs can stop a process. For example, stopping the process to close your own application on closebang, something that can be useful if you want to tidy up things before someone closes the app. A max window can't do that.
    • Sep 11 2015 | 4:20 pm
      would be a nice thing
    • Nov 13 2015 | 3:42 pm
      Add me to the list of feature requesters... ;-)
    • Mar 01 2016 | 11:13 pm
      + 1 Just needed a 'modal dialogue' too
    • Feb 23 2017 | 4:26 pm
      Came across this thread looking for such a feature; ended up making an external myself. Leaves a lot to be desired, but if you want it, it’s here: alert
      Build is Mac only (soz). Any Windows experts willing to fork and do necessary VS++ configs, feel free. Seems to work fine on my machine, but for all I know it may be buggy. Also worth noting that that obtrusive popups are not recommended, and that the new version of the API appears to have actually dropped support for alerts by modal dialog. Nonetheless, figured it may be useful to someone.
    • Feb 23 2017 | 4:33 pm
      Link fail, my bad. Get it here: github.com/jeevn/alert/releases