Jeremy O'Donoghue | 1 May 2009 10:23
Picon

Re: General questions

2009/4/30 Daniel Carrera <daniel.carrera@...>:
> 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

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
Jeremy O'Donoghue | 1 May 2009 10:37
Picon

Re: General questions

2009/4/30 Daniel Carrera <daniel.carrera@...>:
>
> Btw, can you compile and deploy a wxHaskell program using only FOSS? For
> example, can you use mingw an still get the one DLL? Is it hard to get
> the one DLL?

I've never tried - I use Visual Studio to build wxWidgets and wxC -
but it should work, as more users seem to use FOSS build chains than
Microsoft, and all of the Unix platforms use exclusively FOSS tools to
build. The wxWidgets build system is very configurable, and most build
options seem to exist on all supported platforms. In general, I've
found that if wxWidgets team claim something works, it works well
(i.e. they do their QA!)

There are people who use mingw to build the wxC component of wxHaskell.

The single DLL aspect may require some minor fiddling with the wxC
makefiles, but I suspect it should work once you've found the correct
set of options.

> Oh, I just thought of a new question: WebKit. I know that there is a
> project to port WebKit to wxWidgets. Can wxHaskell use wxWebKit? That
> would be uber-cool? (I don't know if I can use it for anything, but I
> can say it would be cool).

In principle, once it is in wxWidgets, it's pretty easy (trivial for a
reasonably experienced C++ programmer) to wrap any new components -
that's to say, once you have built wxWebKit, making it accessible from
wxHaskell is easy (if tedious - for large/complex APIs).

(Continue reading)

Mads Lindstrøm | 1 May 2009 15:01
Picon
Favicon

Re: General questions

Hi

Jeremy O'Donoghue wrote:

> 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.

Yes, that was me. See
http://article.gmane.org/gmane.comp.lang.haskell.wxhaskell.devel/364/match=xrc

I do not think it would take a long time, to make this usable for 90-95%
of the widgets in a XRC file.

However, personally I have no desire to use Glade or XRC files. But I
know others do - to each his own.

I do not want to develop this any further, for an imaginary user who may
or may not exists. However, if somebody wants to this further developed
and is willing to be ginnypig I could do so. But it is only second best.
The best would be for somebody with a GUI app using XRC file, to
implement type-safe XRC accessors themselves.

Greetings,

Mads
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
(Continue reading)

Daniel Carrera | 1 May 2009 15:13

Moderation

Is it normal that all my emails have to go through moderation? I am 
subscribed to this list. It seems odd that my emails require moderation.

Daniel.

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
Daniel Carrera | 1 May 2009 15:17

Re: General questions

Mads Lindstrøm wrote:
> However, personally I have no desire to use Glade or XRC files. But I
> know others do - to each his own.

Personally I have no opinion on Glade as I've never used it. When I say 
I like the idea of specifying a GUI with XML, the picture in my mind is 
something like XUL or HTML (hey, I'm a web developer). But these are 
much simpler than Glade XML. AFAIK you are not supposed to write Glade 
XML by hand.

Daniel.

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
Mads Lindstrøm | 1 May 2009 22:46
Picon
Favicon

Re: Moderation

Hi

Daniel Carrera wrote:
> Is it normal that all my emails have to go through moderation? I am 
> subscribed to this list. It seems odd that my emails require moderation.

I do not know why the moderation flag was set for you. Maybe Mailman do
it automatically somehow. I have removed it now.

/Mads

> 
> Daniel.
> 
> ------------------------------------------------------------------------------
> Register Now & Save for Velocity, the Web Performance & Operations 
> Conference from O'Reilly Media. Velocity features a full day of 
> expert-led, hands-on workshops and two days of sessions from industry 
> leaders in dedicated Performance & Operations tracks. Use code vel09scf 
> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> _______________________________________________
> wxhaskell-users mailing list
> wxhaskell-users@...
> https://lists.sourceforge.net/lists/listinfo/wxhaskell-users
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
(Continue reading)

GŸuenther Schmidt | 1 May 2009 23:16

Re: Moderation

Hi Mads,

it's set so for me too.

You sure it's not set like that for everyone?

Günther

Mads Lindstrøm schrieb:
> Hi
>
> Daniel Carrera wrote:
>   
>> Is it normal that all my emails have to go through moderation? I am 
>> subscribed to this list. It seems odd that my emails require moderation.
>>     
>
> I do not know why the moderation flag was set for you. Maybe Mailman do
> it automatically somehow. I have removed it now.
>
>
> /Mads
>
>   
>> Daniel.
>>
>> ------------------------------------------------------------------------------
>> Register Now & Save for Velocity, the Web Performance & Operations 
>> Conference from O'Reilly Media. Velocity features a full day of 
>> expert-led, hands-on workshops and two days of sessions from industry 
(Continue reading)

Jeremy O'Donoghue | 5 May 2009 13:39

Re: Moderation

Hi all,

Regrettably, we had to turn on moderation for all new subscribers about
a year ago after list spamming started to happen frequently.

Our policy is that as soon as it is clear that a mail is coming from
someone with an issue appropriate to this list, we turn off moderation.
I put my hands up and apologize for forgetting to do this in your case,
Daniel.

Regards
Jeremy

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
Daniel Carrera | 6 May 2009 09:02

Re: Moderation

No problem! Cheers.

Jeremy O'Donoghue wrote:
> Hi all,
> 
> Regrettably, we had to turn on moderation for all new subscribers about
> a year ago after list spamming started to happen frequently.
> 
> Our policy is that as soon as it is clear that a mail is coming from
> someone with an issue appropriate to this list, we turn off moderation.
> I put my hands up and apologize for forgetting to do this in your case,
> Daniel.
> 
> Regards
> Jeremy
> 
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
> Series Scanner you'll get full speed at 300 dpi even with all image 
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> wxhaskell-users mailing list
> wxhaskell-users@...
> https://lists.sourceforge.net/lists/listinfo/wxhaskell-users
> 

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
(Continue reading)

L.Guo | 7 May 2009 12:06
Picon

3 Layout quiz

Hi MailList wxHaskell user:

    I am new to wxhaskell.
    In reading examples and writing my test program, I need some help about Layout controls.

    Reading wxhaskell/samples/wx/Layout.hs, here is the code piece.

>  set f [defaultButton := ok
>        ,layout := container p $
>                   margin 10 $
>                   column 5 [boxed "coordinates" (grid 5 5 [[label "x:", hfill $ widget xinput]
>                                                           ,[label "y:", hfill $ widget yinput]])
>                            ,floatBottomRight $ row 5 [widget ok,widget can]]
>        ]

    I donot know why there must be an container p out of the layout of the controls. I
have tried remove the container, after that, the text boxes and buttons dispeared. Why ?

    In my test, I have written a piece of code like this.

>  set f [layout := column 2 [hfill $ row 1 [hfill $ label "Left"
>                                           ,vfill $ vrule 2
>                                           ,hfill $ label "Right"]
>                            ,hfill $ hrule 1
>                            ,floatCenter . margin 1 . grid 5 5 $
>                               map (\i -> map (label . show) [i..(i+5)]) [1..5]
>                            ]
>        ...

    In the above code, the frame f has a status bar. I have two questions about it.
(Continue reading)


Gmane