Lost Adventurer, Aleks Kirilenko (3D)
LC #42 Pipers Alley

View Full Version : Modal dialog box in tool create

01-06-2005, 07:19 AM
I'm popping up a modal dialog box in a tool create but max (3ds max 7) doesn't properly give focus to the dialog box - the mouse will not interact with the dialog box unless I Alt+Tab away from max and then return to it.

If I Alt+Tab away and back again or if I use the keyboard to navigate the dialog everything works as expected.

Doing a similar thing but using getMaxOpenFile() rather than calling createDialog also works as expected.

Is this a bug in max or is there some way to get this to work properly?

I can't post the script but here's a snippet which (hopefully) shows the gist of what I'm doing:
tool create
on mousePoint click do
if (click == 1) then
createDialog roRollout modal:true
this.p_iSpinnerVal = roRollout.iSpinnerVal

CGTalk Moderation
01-20-2006, 08:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.