THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/03/2005 at 11:54, xxxxxxxx wrote:
Cinema 4D Version: 8.012
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
This is complicated, so bear with me.
There is a CommandPlugin which launches a GeDialog. The dialog has a GeUserArea. Both respond to keyboard input, but the GeUserArea just passes keyboard input to the parent dialog for processing there. Everything works fine at this stage.
Now, my Shader is added to a Material. When the "Edit" button is pressed the shader sets up editing in the GeDialog above. Now, if I hit certain keys (e.g.: Home, Page Up) within the GeDialog, the plugin either acts weirdly ('H' creates two nodes for unknown reasons) or crashes C4D. I'm not responding to these keys whatsoever (I was responding to 'Home', but since the crashing started 'Shift+H' avoids the crashing - also note that the same functionality applied using the button or menu actions works as intended).
My only guess is not only are the keys being passed to GeDialog::Message() but maybe to GeDialog::Command() or GeDialog::CoreMessage(). Or there is something that needs to be done for unhandled key-strokes to pass them on propery or not at all?