Author Topic: OnKeyDown and OnChar doesnt work?Or Im dumb?  (Read 5064 times)

Offline Theif

  • Single posting newcomer
  • *
  • Posts: 5
OnKeyDown and OnChar doesnt work?Or Im dumb?
« 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

« Last Edit: August 05, 2008, 03:45:16 pm by Theif »

Offline Theif

  • Single posting newcomer
  • *
  • Posts: 5
Re: OnKeyDown and OnChar doesnt work?Or Im dumb?
« Reply #1 on: August 05, 2008, 10:04:56 pm »
and Im using XFCE as DE , maybe thi is the problem?

Offline Theif

  • Single posting newcomer
  • *
  • Posts: 5
Re: OnKeyDown and OnChar doesnt work?Or Im dumb?
« Reply #2 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?

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: OnKeyDown and OnChar doesnt work?Or Im dumb?
« Reply #3 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

Offline Theif

  • Single posting newcomer
  • *
  • Posts: 5
Re: OnKeyDown and OnChar doesnt work?Or Im dumb?
« Reply #4 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.

Offline Theif

  • Single posting newcomer
  • *
  • Posts: 5
Re: OnKeyDown and OnChar doesnt work?Or Im dumb?
« Reply #5 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....

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: OnKeyDown and OnChar doesnt work?Or Im dumb?
« Reply #6 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