[erlang-questions] Mysterious wxDialog:showModal/1 return value
Mon Apr 11 14:30:40 CEST 2011
I don't know how it's supposed to work but from wx.hrl
On Mon, Apr 11, 2011 at 1:41 PM, Michael Turner
> The documentation for wxDialog:showModal/1 promises (indirectly, anyway)
> "The return value is the value set with wxDialog::SetReturnCode."
> See http://docs.wxwidgets.org/stable/wx_wxdialog.html#wxdialogshowmodal
> But wxWidgets (at least as of R14B on Windows) doesn't seem to keep that
> I put these lines into the shell:
> Wx= wx:new().
> F = wxFrame:new(Wx, -1, "A frame").
> D = wxMessageDialog:new (F, "Let's talk.").
> When I asked for this:
> I got 0 (zero). When I set it to 1
> I got "ok". When I asked to see the value I'd set
> I got back 1 -- as I'd asked. But when I did
> and hit the OK button, the return value was 5100.
> Why? Is there some reason for this? For my wxWidgets tutorial
> even if I'm stuck with 5100, I'd like, at the very least, to be able to
> explain why it's 5100. Does anybody know?
> -michael turner
> erlang-questions mailing list
More information about the erlang-questions