scrolledWindow

1 view
Skip to first unread message

carlos gomez

unread,
Dec 22, 2009, 7:41:02 PM12/22/09
to wxhaske...@lists.sourceforge.net, Comunidad Haskell San Simon
Hi all

I am trying to use scrolled windows with wxhaskell, but it doesn't work,

Am I doing rightly?

here is the code:
----------------------------------------------------
module Gui where

import Graphics.UI.WXCore
import Graphics.UI.WX

main :: IO ()
main = start gui

gui :: IO ()
gui = do f   <- frame   [text := "Frame"]
         pnl <- scrolledWindow f [scrollRate := sz 20 20]
         sal <- staticText pnl [text := "This is an example of using an scroll bar with wxhaskell, it looks like don't work, so it's true?"]
         set pnl [layout := widget sal]
         set f  [layout := column 5 [widget pnl]]
         return ()
----------------------------------------------------

--carlos

Juan Jose Olivera

unread,
Dec 22, 2009, 7:46:15 PM12/22/09
to hskg...@googlegroups.com

Carlos el chiste de la lista es ser un referente en espaniol, creo que
el escribir en ingles no ayuda al objetivo.

saludos

JJ

> --
>
> Has recibido este mensaje porque estás suscrito al grupo "Comunidad
> Haskell San Simon" de Grupos de Google.
> Para publicar una entrada en este grupo, envía un correo electrónico a
> hskg...@googlegroups.com.
> Para anular tu suscripción a este grupo, envía un correo electrónico a
> hskgroup+u...@googlegroups.com
> Para tener acceso a más opciones, visita el grupo en
> http://groups.google.com/group/hskgroup?hl=es.

warita Linares

unread,
Dec 22, 2009, 9:22:32 PM12/22/09
to hskg...@googlegroups.com
+1


carlos gomez

unread,
Dec 23, 2009, 7:09:08 PM12/23/09
to Comunidad Haskell San Simon
Hola,

Estoy intentando usar el scrolled windows con wxhaskell, pero no funciona.

Lo estoy haciendo correctamente?

Aqui esta el codigo:

----------------------------------------------------
module Gui where

import Graphics.UI.WXCore
import Graphics.UI.WX

main :: IO ()
main = start gui

gui :: IO ()
gui = do f   <- frame   [text := "Frame"]
         pnl <- scrolledWindow f [scrollRate := sz 20 20]
         sal <- staticText pnl [text := "This is an example of using an scroll bar with wxhaskell, it looks like don't work, so it's true?"]
         set pnl [layout := widget sal]
         set f  [layout := column 5 [widget pnl]]
         return ()
----------------------------------------------------



2009/12/22 carlos gomez <carli...@gmail.com>

--

Reply all
Reply to author
Forward
0 new messages