Hi, On Sun, Jun 10, 2007 at 23:07:23 +0200, Antonio Regidor García wrote: > How can I maximize a frame in wxhaskell?
I've been looking into it, but can't quite figure out how yet. There doesn't
seem to be a native wxHaskell way to do it (anyone?). Maybe you can do
something like send a MaximizeEvent directly to the frame, but I can't figure
out how to create such an event. I thought maybe you could do something like
create an event object and set its type to wxEVT_MAXMIZE, but also could not
figure out how to accomplish that.
Sorry.
Maybe somebody else on the list would have some ideas.
===========================
module Main where
import Graphics.UI.WX
import Graphics.UI.WXCore
import System.IO
main :: IO ()
main = start sampler
sampler :: IO ()
sampler =
do f <- frame [text := "maximized window"]
evtHandler <- windowGetEventHandler f
maximizeEvent <- ???
evtHandler maximizeEvent
--
Eric Kow http://www.loria.fr/~kow
PGP Key ID: 08AC04F9 Merci de corriger mon français.
pgpcVBjmHCg2G.pgp
Description: PGP signature
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ wxhaskell-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wxhaskell-users
