(atom this, atom event_type, atom id, atom event)

new topic     » topic index » view thread      » older message » newer message

In wxEuphoria, event procedures have the following parameters:
(atom this, atom event_type, atom id, atom event)

Usually I ignore them.
But if I could know what they mean, I might be able to use them.
What do they mean?

More specifically, here is what I am trying to do:

procedure sort_lstCauses(atom this, atom event_type, atom id, atom event)
  if column = 0 then
    SortCauses_name()
  elsif column = 1 then
    SortCauses()
  elsif column = 2 then
    SortCauses_total()
  end if
end procedure
set_event_handler( {frameWin,lstCauses}, get_id(lstCauses),
  wxEVT_COMMAND_LIST_COL_CLICK,routine_id( "sort_lstCauses" ))


This procedure gets a click event on column label in a wxListCtrl
and then sorts the items.
Ideally it would sort differently depending on which column label
is clicked on.

The question is how to find which column label is clicked on.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu