PDA

View Full Version : Modal dialog box in tool create


thedman72
01-06-2005, 06: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
#stop
)
)
)

CGTalk Moderation
01-20-2006, 07: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.