News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

OnKeyDown and OnChar doesnt work?Or Im dumb?

Started by Theif, August 05, 2008, 03:42:57 PM

Previous topic - Next topic

Theif

It's my first post , so hi all.

I'm using Code::Blocks 8.02 + wxSmith.
OS:uname -a
Linux ptqa-desktop 2.6.25-ARCH #1 SMP PREEMPT Mon Jul 14 15:25:51 UTC 2008 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux

and I've got a problem $subj.

for example
void frameDialog::OnLeftDown(wxMouseEvent& event)
{
     wxMessageBox(wxT("test"));
}


works

and this

void frameDialog::OnKeyDown(wxKeyEvent& event)
{
    wxMessageBox(wxT("test"));
}


doesnt works, Im I doing enything wrong? I create this functions using IDE in same way.
Ive tried to build code::blocks from svn , It didnt help.

here is a project , why event doesnt works?
http://rapidshare.com/files/135012513/project.7z.html

thx


Theif

and Im using XFCE as DE , maybe thi is the problem?

Theif

Yep , just tested on Ubuntu with GNOME , there it works fine. Its a bug , or Code::Blocks isnt support XFCE?

byo

Did you tried last nightly build ? I've fixed some problem related to key events about 3,5 weeks ago.

Regards
   BYO

Theif

Quote from: byo on August 06, 2008, 12:53:04 AM
Did you tried last nightly build ? I've fixed some problem related to key events about 3,5 weeks ago.

Regards
   BYO

I havent noticed build for linux , but Ive build latest from svn(as I already wrote) , it didnt help.

Theif

I think its not IDE bug , Its wxGTK bug , cause I tried C::B 8.02 , C::B from svn , I tried to use wxSmith , wxFormBuilder.Everything got same effect - no effect.But everything works in GNOME, not XFCE....

byo

Quote from: Theif on August 06, 2008, 01:47:28 AM
I think its not IDE bug , Its wxGTK bug , cause I tried C::B 8.02 , C::B from svn , I tried to use wxSmith , wxFormBuilder.Everything got same effect - no effect.But everything works in GNOME, not XFCE....

Looks like you're right. Try to find something on wxWidgets forums, maybe this is known issue.

Regards
   BYO