Re: [wxhaskell-users] where should I ask user questions about wxHaskell
On 1 June 2011 05:09, 诺铁 noty...@gmail.com 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@lists.sourceforge.net. 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 hjgt...@chello.nlwrote: On Tue, 31 May 2011 22:13:42 +0200, 诺铁 noty...@gmail.com 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___ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users
Re: [wxhaskell-users] Property sheet
Hi Joel, On 1 June 2011 04:19, Joel Shellman j...@mentics.com 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___ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users
Re: [wxhaskell-users] 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 carliro...@gmail.com 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, 诺铁 noty...@gmail.com 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@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 ___ wxhaskell-users mailing list wxhaskell-users@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___ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users
Re: [wxhaskell-users] 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 signature.asc Description: Digital signature -- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users