Hi,
On Sun, Jun 10, 2007 at 23:07:23 +0200, Antonio Regidor Garc=EDa 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 figu=
re
out how to create such an event. I thought maybe you could do something li=
ke
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.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D
module Main where
import Graphics.UI.WX
import Graphics.UI.WXCore
import System.IO
main :: IO ()
main =3D start sampler
sampler :: IO ()
sampler =3D
do f <- frame [text :=3D "maximized window"]
evtHandler <- windowGetEventHandler f
maximizeEvent <- ???
evtHandler maximizeEvent
=20
--=20
Eric Kow http://www.loria.fr/~kow
PGP Key ID: 08AC04F9 Merci de corriger mon fran=E7ais.

thanks Malcolm!
I am new to Haskell and wxhaskell.
I want to get a string from one text box,process it on button click and show the result in another test box on the same window.
stxt <- textEntry p [enabled := True]
textlog <- textCtrl p [enabled := False, wrap := WrapNone]
-- use text control as logger
textCtrlMakeLogActiveTarget textlog
mytext <- textCtrlGetValue stxt
eval <- button p [text := "Process", on command := logMessage mytext]
Do you mean I need to define an event handler explicitly indicating the end of input.which event??
Atif
---------------------------------
Need a vacation? Get great deals to amazing places on Yahoo! Travel.