Questions tagged [wxhaskell]

A Haskell binding for wxWidgets

WxHaskell is a GUI library for Haskell built ontop of wxwidgets

83 questions
1
vote
2 answers

Build errors when installing wxHaskell on Linux

I'm on Ubuntu 13.10 and trying to install wxHaskell. I installed wxWidgets 2.9 from the http://repos.codelite.org/wx3.0/ubuntu/ repository. The basic cabal install wx gets me src/cpp/eljgrid.cpp:61:65: error: no matching function for call to…
Taymon
  • 24,950
  • 9
  • 62
  • 84
1
vote
0 answers

Haskell wx fails install Macosx

I was trying to get wxHaskell installed on my mac (Osx Mavericks). I fixed the issue with gcc, and I used brew to install wxmac (version 3.0). The issue that keeps coming up is that the hackage cabal searches for looks for wx 2.9, while I have 3.0.…
1
vote
1 answer

wxHaskell segfaults on GUI restart due to stack overflow

When a wxHaskell GUI is started and closed, and then another wxHaskell GUI is started again, the application gets segmentation fault due to stack overflow. Simple demonstration source: module Main where import Graphics.UI.WX main = do start $…
myrix
  • 23
  • 4
1
vote
2 answers

wxHaskell: Initial frame size too small

After having installed WxHaskell and gtk2hs I am playing around with both to work out which of them to choose. For WxHaskell I am working through the documentation at WxHaskell at haskell.org. The following first example is from the "Quick Start"…
user2095129
1
vote
1 answer

Wxhaskell - wxcore fails due to building phase (g++ error)

I'm trying to build wxhaskell, and it seems there is lots of trouble, I could figure out what to do in some cases, but I'm stuck now. I'm using wxwidgets-2.8 / wxhaskell-0.11.1.2, and the error that occurs is: g++: error: unrecognized command line…
1
vote
2 answers

Nested Lambdas in wxHaskell Library

I've been trying to figure out how I can make staticText elements resize to fit their contents with wxHaskell. From what I can tell, this is the default behavior in wxWidgets, but the wxHaskell wrapper specifically disables this behavior. However,…
Rose Kunkel
  • 3,102
  • 2
  • 27
  • 53
1
vote
1 answer

Layout combinators in wxhaskell

I'm trying to fill text entries to fill the whole width, which works fine if the entries are put directly to the frame, but if they're put in to a panel, they revert to their default size. Also the 'boxed' layout combinator text disappears. What am…
Masse
  • 4,334
  • 3
  • 30
  • 41
0
votes
2 answers

How can I use wxFreeChart in wxHaskell?

I'm newbie to haskell. while wxFreeChart page in wxCode says it supports all wx ports, I have no any idea about how to use it in haskell
user1065942
0
votes
1 answer

How do I extract data from a wxHaskell grid control?

I've created a wxHaskell grid control, and it displays fine, the user can enter data etc. It's also fairly obvious how to programatically write data into it (gridSetCellValue). But how do I read the data from it? There's gridGetTable which might or…
Ganesh Sittampalam
  • 28,821
  • 4
  • 79
  • 98
0
votes
0 answers

Install wxHaskell 64 on Windows 10 get error (foreign import ccall "boolToInt" cboolToInt :: CBool -> Int). What to do?

I have Windows 10 I installed Haskell Platform 8.2.1 (HaskellPlatform-8.2.1-full-x86_64-setup.exe from https://www.haskell.org/platform/windows.html) (This version have mingw and gcc 6.2.0 for what this matters) I downloaded Achelane from…
0
votes
1 answer

Window-less event injection into wxWigets event loop using wxHaskell

Another take on Haskell-way multithreading and wxWidgets. I see https://stackoverflow.com/a/12596595/4095104 as a nice hack to run code in the wx event loop, but it requires me to create a window in start/run first and return from it so the event…
L29Ah
  • 268
  • 1
  • 16
0
votes
0 answers

wxHaskell: resize layout to accommodate dynamic contents

I am having some difficulty with dynamic layouts in wxHaskell. I have nested Panels, and the layout of the innermost panel often changes in a way that causes it to outgrow its parent's size. I am unclear as to the purposes and effects of the various…
archaephyrryx
  • 415
  • 2
  • 10
0
votes
1 answer

wxhaskell: Updating a statusField using "on click" of a panel

I would like some advice on how to update a "statusField" after clicking on a "panel". The following program demonstrates the problem. The program draws two frames. You can imagine the left frame to be some kind of drawing area and the right frame…
0
votes
2 answers

How to install wxHaskell?

I have downloaded the latest Haskell Platform(8.0.1 version) for Windows 7, wxWidgets-3.0.2, set all the needed environment variables. I have successfully installed "wxdirect" using "cabal install", but when I try to install "wxc" it fails. Install…
0
votes
2 answers

wxHaskell Button State

I'm writing an application using wxHaskell and I want to be able to detect the state of a button (whether or not it is pressed at any given time). I'm having a bit of trouble figuring out how to do this, however. First I thought that there might be…
Kwarrtz
  • 2,693
  • 15
  • 24