1. wxEuphoria events don't work

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?

new topic     » topic index » view message » categorize

2. Re: wxEuphoria events don't work

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: wxEuphoria events don't work

ghaberek said...

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.

new topic     » goto parent     » topic index » view message » categorize

4. Re: wxEuphoria events don't work

Jerry_Story said...

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

new topic     » goto parent     » topic index » view message » categorize

5. Re: wxEuphoria events don't work

ghaberek said...
Jerry_Story said...

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.

new topic     » goto parent     » topic index » view message » categorize

6. Re: wxEuphoria events don't work

ghaberek said...
Jerry_Story said...

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.

new topic     » goto parent     » topic index » view message » categorize

7. Re: wxEuphoria events don't work

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.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu