Advertisement

Cpp releated question (COMPICATED)

Started by July 26, 2001 11:02 AM
3 comments, last by _Z 23 years, 6 months ago
First of all, if you want to help, get www.kivilinn.tartu.ee/z (theres a link to a zip file, 49 kb, get it) The problem is: there is a long bar (the longest, when you launch the app and the screen appears), click it. type some letters try pushing space, in the left lower corner appears a message : button1 clicked. This may not happen, why it does...explore the code...any help would be VERY appreciated...please
0x600
I haven''t downloaded the code, but you say when they user presses space, that a button recieves a click message, well that must mean that the button has focus cos when you press space on a button and it has focus, it sends a click message to the parent window. The other keys are all going to the button but they dont do the click, only the spacebar does. You either have to take the focus off the button, remove the button or disable the button, or not allow the button to be pressed by pressing the spacebar when it has focus, but you shouldn''t really do that, as I said I haven''t downloaded the code so I''m not sure exactly what you want to do with this.

And why is this complicated ??

FatalXC
Advertisement
Finally I solved my problem...I disabled all keypad keys (except for enter).
It took me a while to understand, that wParam in WM_KEYDOWN and wParam in WM_CHAR ain''t the same. When I got that, everything went smoothly, no more mysterious WM_(R/L)BUTTONDOWN messages appeared.
And of corse thanks to you, FatalXC for help...dmn it''s good, when things workh how you want em to...))
0x600
tere, kuidas läheb?

---

cone3d

http://cone3d.gz.ee
-> soon http://cone3d.gamedev.net
---cone3dhttp://cone3d.gamedev.netMy software never has any bugs - it just generates random features
Nagu õlitatud!!!Btw, mail to z@mega ee, kui oled koostööst huvitatud ....
0x600

This topic is closed to new replies.

Advertisement