Joel Shellman | 1 Jun 2011 05:19

Property sheet

Is there a property sheet/grid/panel type of widget available via wxHaskell?

I saw a wxPropertyGrid and wxPropertySheetDialog in the wxWidgets
docs, but couldn't find anything like that in the wxHaskell docs on
hackage.

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
诺铁 | 1 Jun 2011 06:09
Picon
Gravatar

Re: where should I ask user questions about wxHaskell

I should have subscribe to this list. I tried to subscribe again,and recieve


"An attempt was made to subscribe your address to the mailing list
wxhaskell-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org.  You are already subscribed to this mailing list."

list manager,would please check my subscribe status,thank you.

On Wed, Jun 1, 2011 at 6:44 AM, Henk-Jan van Tuyl <hjgtuyl <at> chello.nl> wrote:
On Tue, 31 May 2011 22:13:42 +0200, 诺铁 <notyycn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

Hi,
   it seems that this list require approval,which is quite slow. so I guess
maybe it's not right place to ask user questions. so where is the right
place?

If you subscribe to this list, your e-mails do not require approval; it is the right place for user questions.

Regards,
Henk-Jan van Tuyl


--
http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
--

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
Jeremy O'Donoghue | 1 Jun 2011 10:04
Picon

Re: where should I ask user questions about wxHaskell

On 1 June 2011 05:09, 诺铁 <notyycn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
I should have subscribe to this list. I tried to subscribe again,and recieve

"An attempt was made to subscribe your address to the mailing list
wxhaskell-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org.  You are already subscribed to this mailing list."

list manager,would please check my subscribe status,thank you.

You are subscribed, and your 'moderate' flag has been cleared.
 
On Wed, Jun 1, 2011 at 6:44 AM, Henk-Jan van Tuyl <hjgtuyl-/NLkJaSkS4VmR6Xm/wNWPw@public.gmane.org> wrote:
On Tue, 31 May 2011 22:13:42 +0200, 诺铁 <notyycn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

Hi,
   it seems that this list require approval,which is quite slow. so I guess
maybe it's not right place to ask user questions. so where is the right
place?

New subscribers to the list always have a 'moderate' flag set, so your first posting is held in a queue to make sure that it is relevant. After your first (relevant) post to the list, mails are no longer moderated, as you will have noticed - this mail thread has appeared on the list without delay.

I accept that this is an inconvenience for new list users - I know that when I have a question I always want an immediate answer, and it can be frustrating when this doesn't happen. Unfortunately, over 95% of mail sent to wxHaskell lists is spam, so moderation is an essential part of keeping the list relevant and useful.

I try to moderate reasonably frequently, but you need to know that:
  1. I am located in the UK, so mail sent while I am asleep definitely won't get moderated until I wake up! I typically look to see if I should moderate once a day, so again, and depending on timing, you may be unlucky and get your question delayed.
  2. I am by far the moderator on the list, so if I'm away or very busy, things happen more slowly than daily. Actually, Eric helps out as a courtesy when my response is slow, but it's only a courtesy (i.e. the responsibility for responsiveness is mine)
  3. I am pretty busy outside of wxHaskell with a fairly heavy day job (I am the software lead on two significant, non-Haskell, projects with a major fabless semiconductor company) and a young family. Inevitably, these have to come first.
The moderation flag only applies to new list members, so I don't believe you will see the problem again.
 
If you subscribe to this list, your e-mails do not require approval; it is the right place for user questions.

This is definitely the correct place for questions.

I would also like to mention that the wxHaskell community is fairly small, although we try to follow the example of the wider Haskell community in being as helpful as possible. This means that there may not be so many people who can give a good answer to your question.

Best regards
Jeremy
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
Jeremy O'Donoghue | 1 Jun 2011 10:09
Picon

Re: Property sheet

Hi Joel,

On 1 June 2011 04:19, Joel Shellman <joel-mS8KwmfSQcZBDgjK7y7TUQ@public.gmane.org> wrote:

Is there a property sheet/grid/panel type of widget available via wxHaskell?

I saw a wxPropertyGrid and wxPropertySheetDialog in the wxWidgets
docs, but couldn't find anything like that in the wxHaskell docs on
hackage.

At this time, wxPropertyGrid and wxPropertySheetDialog are not wrapped.

wxPropertyGrid is new in wxWidgets 2.9 - at present, none of the 2.9 new features has been wrapped. wxPropertySheetDialog is present in 2.8, possibly earlier. I will try to get around to wrapping it shortly.


Regards
Jeremy
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
Jeremy O'Donoghue | 1 Jun 2011 10:32
Picon

Re: newbie question, why clientSize doesn't affect textEntry?

The full explanation is a bit tricky (tricky enough that I don't fully understand or I would have fixed it!), but results from the way in which Layout works. Layout is a neat idea, but has a number of quirks. The main thing to realize is that Layout creates an hierarchy of Sizer instances which contain your control instances. The interaction between the Sizers and control size constraints can be tricky to fathom, but basically the Sizer constraints seem to override clientsize directives.

My best advice would be to use either Layout and nothing else (as Carlos suggests) or use Sizers manually and ignore Layout. I used this alternative approach in m Custom Control tutorial - see http://wewantarock.wordpress.com/2010/01/10/custom-controls-in-wxhaskell-part-2/

Regards
Jeremy

On 31 May 2011 23:05, carlos gomez <carliros.g-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
I don't understand too. Looks like some misterious thing is happening.
But you can use the 'mimsize' layout funcion from WXCore in order to get what you want.

Here the code:


module Main where

import Graphics.UI.WX

main::IO()

main = start gui

gui :: IO ()

gui = do f <- frame [text := "timer"]
         panel <- panel f [clientSize := sz 200 100]
         hr  <- textEntry   panel 
                            [ text := "hour"
                            , clientSize := sz 10 10
                            ]
         min <- button      panel 
                            [ text := "min"
                            , clientSize := sz 10 10
                            ]
         sec <- textEntry   panel 
                            [ text := "sec"
                            , clientSize := sz 10 10
                            ]
         -- layout
         set panel [layout := margin 10 $  row 1 [ minsize (sz 10 10) $ widget hr
                                                 , widget min
                                                 , minsize (sz 10 10) $ widget sec
                                                 ]
                   ]
         set f [layout := widget panel]



On 30 May 2011 05:49, 诺铁 <notyycn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hi,
     I am learning wxHaskell,and trying to create a small timer app. I don't understand why in following code ,clientSize only affect button control

module Main where

import Graphics.UI.WX

main::IO()
main = start gui

gui :: IO ()
gui = do
f <- frame [text := "timer"]
panel <- panel f [clientSize := sz 200 100]
hr <- textEntry panel [text := "hour",clientSize := sz 10 10]
min <- button panel [text := "min",clientSize := sz 10 10]
sec <- textEntry panel [text := "sec",clientSize := sz 10 10]
-- layout
set panel [layout := margin 10 $ row 1 [widget hr,widget min,widget sec]]
set f [layout := widget panel]

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
wxhaskell-users mailing list
wxhaskell-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users



------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
wxhaskell-users mailing list
wxhaskell-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users


------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
Eric Kow | 1 Jun 2011 12:23
Picon
Gravatar

Re: Property sheet

On Wed, Jun 01, 2011 at 09:09:55 +0100, Jeremy O'Donoghue wrote:
> wxPropertyGrid is new in wxWidgets 2.9 - at present, none of the 2.9 new
> features has been wrapped. wxPropertySheetDialog is present in 2.8, possibly
> earlier. I will try to get around to wrapping it shortly.

[Sorry, my remark is neither new nor helpful]

I wish there was a magical way for people to widgets on their own, that
over time we could collect all the ad-hoc wrappings and either bundle
them with wx or some sort of wx-extras package.

--

-- 
Eric Kow <http://erickow.com>
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
Jeremy O'Donoghue | 3 Jun 2011 10:19
Picon

Re: Change the range of a spin control

Probably too late to help, but try

spinCtrlSetRange :: SpinCtrl a -> Int -> Int -> IO ()

The API documentation hasn't kept up with wxHaskell itself :-(

On 10 May 2011 10:15, Guy <guytsalmaves-h-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:
On 10/05/2011 11:28, Guy wrote:
> How can I change the range of a spin control after it's been created?

Note: WxWidgets has a function wxSpinCtrl::SetRange, but I can't find the wxHaskell wrapper for it.


------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
wxhaskell-users mailing list
wxhaskell-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
Guy | 3 Jun 2011 10:59
Picon
Favicon

Re: Change the range of a spin control

On 03/06/2011 11:19, Jeremy O'Donoghue wrote:
> The API documentation hasn't kept up with wxHaskell itself :-(

Isn't it auto-generated by Haddock?

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
Guy | 3 Jun 2011 13:43
Picon
Favicon

Re: wxHaskell repo restored to code.haskell.org

On 03/06/2011 14:14, Jeremy O'Donoghue wrote:
> The main issue is that wxWidgets 2.9 is impossible to build on my Windows machine in Monolithic mode (runs
out of
> memory).

This is reported as a GHC memory leak
http://hackage.haskell.org/trac/ghc/ticket/4800

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
Guy | 12 Jun 2011 18:54
Picon
Favicon

Haskell Platform

I'm trying to get a GUI package included in the Haskell Platform. The platform's inclusion policy requires
that (one 
of?) the package's official maintainers supports the proposal.

Are any WxHaskell maintainers interested?

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev

Gmane