[erlang-questions] wxErlang

? aveviort@REDACTED
Tue Jul 16 10:49:28 CEST 2013

Hello, I've got a question about creating applications using wxErlang. This
is my first real Erlang project.
My question is: which style of handling messages better? I do it as in
"Erlang Programming", like this:

settings_loop(SettingsWindow) ->
#wx{id = ?SAVE_SETTINGS, event = #wxCommand{type = command_button_clicked}}

In wxDemo I saw such method of handling:

handle_event(#wx{event = #wxAuiNotebook{type =
command_auinotebook_page_close}}, State) -> ...

What's the difference? And which method should I prefer?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130716/890e5f8a/attachment.htm>

More information about the erlang-questions mailing list