PDA

View Full Version : EnableAccellerators has no effect


davestewart
12-02-2006, 08:40 PM
From the MaxScript help:

For most of the ActiveX controls there is no automatic way of determining if it supports keyboard input to disable the 3ds Max keyboard accelerators.

A MAXScript system global called "enableAccelerators" can be set to false whenever an ActiveX control gets focus so that the user can type in the controls.




However, it doesn't seem to matter what I do, I just CANNOT type into any AX control.


Does anyone know why? It's making the controls unusable.

Thanks,Dave

Light
12-02-2006, 09:39 PM
Hey Dave,

Are you using beforeLabelEdit event handler for the treeview? Basically you should use something like this:

on tv beforeLabelEdit cancel do enableAccelerators = false




Light

davestewart
12-02-2006, 11:07 PM
Hey Light,
Yeah, I know about that, but any combination I try just doesn't work on my max. It's very frustrating!!!

Any more ideas anyone?

Light
12-02-2006, 11:20 PM
From where do you initiate the renaming (if that's what you do)? Or do you mean pressing a key?




Light

davestewart
12-03-2006, 12:09 PM
Well basically, I just set, or manually type enableAccellerators = false, and then I should be able to focus an ax control and just type stuff directly into teh control right?

In this case it's a property grid, but it shouldn't matter if it's a list view or tree view either, should it?

Light
12-03-2006, 09:35 PM
Yeah it shouldn't matter but if you set it to false by typing in the listener, it doesn't have any effect, as max automatically turns on accelerators when you focus on something else.




Light

davestewart
12-04-2006, 06:25 AM
Thanks Light,
I'll check it out and get back to ya ;)

CGTalk Moderation
12-04-2006, 06:25 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.