Dialog box to chose yes or no or something similar?

yns's icon

Is there a way to let a dialogbox pop up were you can choose yes or no or something like ok or cancel?

Eddy's icon

[dialog] ...?

Eddy

yns's icon

I am aware of dialog wich is nearly what I'm searching for but what I actually would like is [dialog] without the ability to type in text.

Eddy's icon

How about creating a subpatch with a presentation view containing OK and Cancel buttons, and open it using [pcontrol]? Then have it close itself on selection of either button.

Not aware of any specific object in Max that will do what you want.

Eddy

bkshepard's icon

Oli Larkin (http://www.olilarkin.co.uk/index.php?p=max) used to have a great little object called ol.alert that did what you want and looked like the standard OS alert box, but I can't find it anywhere. It's not in the Max Object Database, nor on Oli's site anymore. It seems to have disappeared. You might try contacting him directly and seeing if it is still available somewhere.

Luke Hall's icon

If you're on a Mac you can use applescript and the [shell] external to display OSX-style alerts. Have a look at the example below.

lh

Max Patch
Copy patch and select New From Clipboard in Max.

Floating Point's icon
Max Patch
Copy patch and select New From Clipboard in Max.

These patches work for win or mac, and they don't interrupt midi output (in the way system-called dialogue boxes can)

Erick C's icon

This is for Luke Hall.
How can I change the position of the DialogBox?
because I would like to put it in the center of the patch.
thanks for your help.

Erick C

Peter McCulloch's icon

Here's a way of doing it with Java that may be a little more flexible. Source included.

1753.MaxDialog.zip
zip
Erick C's icon

Hi, Peter.
When I try to open MaxDialog.maxhelp, max it quits on me.
I have the power mac G5 and intel.if you can double check this for me I'd really appreciate it.
thanks for your help.

Erick C

pdelges's icon

MaxDialog.maxhelp crashes here too, latest Max under OSX.6.5

p