From: Jeremy O'D. <jer...@gm...> - 2009-05-01 08:23:22
|
2009/4/30 Daniel Carrera <dan...@th...>: > Oh, can one use wxGlade with wxHaskell? I'm thinking of the XRC files (XML > description of the UI). Personally I'm a big fan of using XML to describe > GUIs. You can use XRC files with wxHaskell, although I should note that they are not currently type-safe (so you will get a crash if you load a resource and treat it as the wrong type of object (e.g. load a button into a list box). Someone (Mads, I think) showed a proof of concept for type safety on XRC, but I haven't had the time to implement it fully so far. I use something called wxFormBuilder on Windows to create my XRC files, which seems a little more complete than wxGlade, although both will do the job. There's a sample provided with wxHaskell which shows how to use XRC files, should you decide to go this way. Jeremy |