Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Toolbar clears after ESC key [solved, it`s the bug in user code]
Re: Toolbar clears after ESC key [bug?] [message #12084 is a reply to message #12082] |
Wed, 10 October 2007 19:03   |
Oblivion
Messages: 1210 Registered: August 2007
|
Senior Contributor |
|
|
Quote: | ; in MainWindow::OnUpdateToolbar, but in some repainting cases toolbar just copies it`s icons twice or more times.
|
Hmm, do you use a key hook (InstallKeyHook())? I've encountered the very same problem, and it was only because of the wrong return value. If you use a global keyhook, make sure that it returns true. and before it, make sure that your callback passes the variables to the default ctrl. Eg.
static bool CtrlKeyHook(Ctrl* ctrl, dword key, int count) { /* your code goes here... */ ctrl->Key(key, count); return true; }
As in the above snippet.
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Wed, 10 October 2007 19:06] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon Jun 09 05:10:06 CEST 2025
Total time taken to generate the page: 0.04155 seconds
|