1. wxEuphoria events don't work
- Posted by Jerry_Story May 20, 2009
- 863 views
I made the mistake of trying Euphoria version 4.0a3. This made everything not work. (From now on I go back to my policy of waiting until the official version.)
Then I went back to Euphoria version 3.1.
Now I'm using: exu 829.8 K Euphoria version 3.1 libwxeu.so.13 890.5 K wxeud.e 829.8 K It says this goes with libwxeu.so.13
Now events in wxEuphoria don't work.
Clearly it's finding wxeud.e and libwxeu.so.13 because everything looks right. But the events don't work.
1. Why don't events work?
2. How can I get events to work?
2. Re: wxEuphoria events don't work
- Posted by ghaberek (admin) May 21, 2009
- 851 views
The event handler system, as a whole, works fine. Can you provide an example of an event that does not work? I think there are a few that are declared but don't work yet. Are you calling set_event_handler() correctly? You should look at the provided examples to gain an understanding of how event handlers are setup.
-Greg
3. Re: wxEuphoria events don't work
- Posted by Jerry_Story May 21, 2009
- 858 views
The event handler system, as a whole, works fine. Can you provide an example of an event that does not work? I think there are a few that are declared but don't work yet. Are you calling set_event_handler() correctly? You should look at the provided examples to gain an understanding of how event handlers are setup.
-Greg
I have something set up wrong. But I don't have a clue what. All the events fail to work and all used to work. Here is a small example.
procedure onClick_btnCheck1(atom this, atom event_type, atom id, atom event) check1() shade_check1() end procedure set_event_handler( btnCheck1, get_id(btnCheck1),wxEVT_COMMAND_BUTTON_CLICKED,routine_id( "onClick_btnCheck1" ))
This used to work. Now it doesn't work. I don't have a clue why.
4. Re: wxEuphoria events don't work
- Posted by ghaberek (admin) May 21, 2009
- 814 views
I have something set up wrong. But I don't have a clue what. All the events fail to work and all used to work. Here is a small example.
procedure onClick_btnCheck1(atom this, atom event_type, atom id, atom event) check1() shade_check1() end procedure set_event_handler( btnCheck1, get_id(btnCheck1),wxEVT_COMMAND_BUTTON_CLICKED,routine_id( "onClick_btnCheck1" ))
This used to work. Now it doesn't work. I don't have a clue why.
This works for me...
include wxeud.e without warning object void constant frmMain = create( wxFrame, {0, -1, "Test"} ) constant pnlMain = create( wxPanel, {frmMain} ) constant btnCheck1 = create( wxButton, {pnlMain, -1, "Check", 10, 10, 90, 30} ) procedure btnCheck1_onClick(atom this, atom event_type, atom id, atom event) void = message_box( "Clicked!", "Test", wxICON_INFORMATION ) end procedure set_event_handler( btnCheck1, -1, wxEVT_COMMAND_BUTTON_CLICKED, routine_id("btnCheck1_onClick") ) wxMain( frmMain )
-Greg
5. Re: wxEuphoria events don't work
- Posted by Jerry_Story May 21, 2009
- 825 views
I have something set up wrong. But I don't have a clue what. All the events fail to work and all used to work. Here is a small example.
procedure onClick_btnCheck1(atom this, atom event_type, atom id, atom event) check1() shade_check1() end procedure set_event_handler( btnCheck1, get_id(btnCheck1),wxEVT_COMMAND_BUTTON_CLICKED,routine_id( "onClick_btnCheck1" ))
This used to work. Now it doesn't work. I don't have a clue why.
This works for me...
include wxeud.e without warning object void constant frmMain = create( wxFrame, {0, -1, "Test"} ) constant pnlMain = create( wxPanel, {frmMain} ) constant btnCheck1 = create( wxButton, {pnlMain, -1, "Check", 10, 10, 90, 30} ) procedure btnCheck1_onClick(atom this, atom event_type, atom id, atom event) void = message_box( "Clicked!", "Test", wxICON_INFORMATION ) end procedure set_event_handler( btnCheck1, -1, wxEVT_COMMAND_BUTTON_CLICKED, routine_id("btnCheck1_onClick") ) wxMain( frmMain )
-Greg
Changing get_id(btnCheck1) to -1 did not work for me.
It's not a problem with wxEuphoria. It's a mysterious setup problem.
6. Re: wxEuphoria events don't work
- Posted by Jerry_Story May 22, 2009
- 840 views
- Last edited May 23, 2009
I have something set up wrong. But I don't have a clue what. All the events fail to work and all used to work. Here is a small example.
procedure onClick_btnCheck1(atom this, atom event_type, atom id, atom event) check1() shade_check1() end procedure set_event_handler( btnCheck1, get_id(btnCheck1),wxEVT_COMMAND_BUTTON_CLICKED,routine_id( "onClick_btnCheck1" ))
This used to work. Now it doesn't work. I don't have a clue why.
This works for me...
include wxeud.e without warning object void constant frmMain = create( wxFrame, {0, -1, "Test"} ) constant pnlMain = create( wxPanel, {frmMain} ) constant btnCheck1 = create( wxButton, {pnlMain, -1, "Check", 10, 10, 90, 30} ) procedure btnCheck1_onClick(atom this, atom event_type, atom id, atom event) void = message_box( "Clicked!", "Test", wxICON_INFORMATION ) end procedure set_event_handler( btnCheck1, -1, wxEVT_COMMAND_BUTTON_CLICKED, routine_id("btnCheck1_onClick") ) wxMain( frmMain )
-Greg
For me, it makes the window and the button, but nothing happens when I click on the button.
7. Re: wxEuphoria events don't work
- Posted by Jerry_Story May 22, 2009
- 815 views
- Last edited May 23, 2009
Got it solved. I think.
wxNEED_BUILD was 10. It's supposed to be 13.
I did a search for all the instances of libwxeu.so and all the instances of wxeud.e and I deleted all those that were not the latest.
Bingo. Now the events work.
Lesson to be learned: When updating stuff, get rid of all the out of date stuff.