03-07-2014, 12:17 PM
(03-06-2014, 03:11 PM)VincentDoan Wrote: Yes, can you please show me how to detect user pressing any keys with CORE?
I think you misunderstood my previous post. CORE cannot detect every/any arbitrary keypress at this time, but it is something on our to-do list for future versions. However, for example, CORE has the ability to call a callback whenever a character is entered in a text field, so I was asking what you were trying to accomplish in case CORE already has your situation handled.
(03-06-2014, 03:11 PM)VincentDoan Wrote: By the way, how do you check/uncheck a menu item in the main pull-down menu?
Use the hdi::core::MenuItem:etChecked() member function.
(03-06-2014, 03:11 PM)VincentDoan Wrote: As for setting up callbacks in CORE, can I pass something in the callback or does that not supported?
No, C/C++ function pointers are strictly typed, and since CORE cannot know what value to pass for every possible type of argument we opted for zero-argument callbacks.