[erlang-questions] Mysterious wxDialog:showModal/1 return value
Mon Apr 11 13:41:48 CEST 2011
The documentation for wxDialog:showModal/1 promises (indirectly, anyway)
"The return value is the value set with
But wxWidgets (at least as of R14B on Windows) doesn't seem to keep that
I put these lines into the shell:
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions