From: Henning T. <le...@he...> - 2011-10-30 16:21:56
|
On Sun, 30 Oct 2011, Henning Thielemann wrote: > Recently on this list it was suggested to use > > myEventId = wxID_HIGHEST+1 > > for custom events and register them as menu events. > > http://snipplr.com/view/17538/ > > > Now I added menus to my application and I got the strange behaviour that > selecting a certain menu item (the second one of all items) let my > application freeze. I found out that this could be solved by choosing a > different EventId. So is the id wxID_HIGHEST+1 really free for use? How > can I safely choose an id that is free for custom use? Is it sensible to > consider custom events as menu events? I found in Graphics.UI.WXCore.Types: varTopId :: Var Id varTopId = unsafePerformIO (varCreate (wxID_HIGHEST+1)) It looks like wxID_HIGHEST+1 is alreay used by wxhaskell. How can I make sure that I do not clash with id's used by wxhaskell in future? |