Build a UI Object that takes Keyboard input with Min Devkit?
Greetings!
I'd like to use MinDevkit to build a UI Object that I can type into. It seems like this should be possible, but I'm having a hard time finding details in the docs about it.
The Min Devkit docs mention additional messages that UI Objects can take. But those messages all refer to mouse input.
The Max API docs say, "user interface objects draw in a box and respond to user events such as mouse clicks and keyboard events." So I know this should be doable. But again, the examples only describe how respond to mouse events.
Can anyone advise on where I can look to get started building a UI object with MinDevkit that will respond to keyboard events? Thanks a ton for any assistance!
Okay. I found the uitextedit example in Max SDK.
I am reminded that
with the 8.2 update to the max-sdk (and corresponding updates to min), externals that mix max-sdk C function calls with min C++ should easier to develop, since both now utilize the same base headers and libs.
So hopefully it will just be a matter of studying up on how UI Objects work in Max SDK.
hi, not exactly the answer, but in case you have to know the modifiers key pressed whilst clicking the mouse, you can use this in max api :
c74::max::jkeyboard_getcurrentmodifiers();
did you find a solution ? i am curious how you register the callback from the keyboard without mouse activity...
The JBOX_HILITE flag needs to be set. Then you can implement keydown and keyup methods that Max will call when you hit keys. For an example: https://github.com/11ols/11UILayer