Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Theif on August 05, 2008, 03:42:57 pm

Title: OnKeyDown and OnChar doesnt work?Or Im dumb?
Post by: Theif on August 05, 2008, 03:42:57 pm
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
Code
void frameDialog::OnLeftDown(wxMouseEvent& event)
{
     wxMessageBox(wxT("test"));
}

works

and this
Code
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

Title: Re: OnKeyDown and OnChar doesnt work?Or Im dumb?
Post by: Theif on August 05, 2008, 10:04:56 pm
and Im using XFCE as DE , maybe thi is the problem?
Title: Re: OnKeyDown and OnChar doesnt work?Or Im dumb?
Post by: Theif on August 05, 2008, 10:44:32 pm
Yep , just tested on Ubuntu with GNOME , there it works fine. Its a bug , or Code::Blocks isnt support XFCE?
Title: Re: OnKeyDown and OnChar doesnt work?Or Im dumb?
Post by: 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
Title: Re: OnKeyDown and OnChar doesnt work?Or Im dumb?
Post by: Theif on August 06, 2008, 01:12:58 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.
Title: Re: OnKeyDown and OnChar doesnt work?Or Im dumb?
Post by: 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....
Title: Re: OnKeyDown and OnChar doesnt work?Or Im dumb?
Post by: byo on August 06, 2008, 10:57:49 pm
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