[Closed] EnableAccellerators has no effect
[font=‘Verdana’]From the MaxScript help:
[/font][left][font=‘Verdana’]For most of the ActiveX controls there is no automatic way of determining if it supports keyboard input to disable [/font][font=‘Verdana’]the [/font][font=‘Verdana’]3ds Max[/font][font=‘Verdana’] keyboard [/font][font=‘Verdana’]accelerators. [/font]
[/left]
[left][font=‘Verdana’]A[/font][font=‘Verdana’] MAXScript system global called [/font][font=‘Verdana’]“enableAccelerators[/font][font=Verdana]” can be set to false whenever an ActiveX control gets focus so that the user can type in the controls.[/font]
[/left]
[left]
[/left]
[left][font=Verdana]However, it doesn’t seem to matter what I do, I just CANNOT type into any AX control.
[/font]
[/left]
Does anyone know why? It’s making the controls unusable.
Thanks,[left]Dave
[/left]
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
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?
From where do you initiate the renaming (if that’s what you do)? Or do you mean pressing a key?
Light
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?
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