When I start my application I want to set the focus on a certain button. Currently I need to hit tab once to have the button focused.
The wxwidgets documents mention a SetFocus method (link) which doesn't seem to be available in wxhaskell?
Then I found MoveBeforeInTabOrder (link) but again, I didn't find it in wxhaskell.
A maintainer of wxhaskell mentioned it is a 'fairly complete GUI binding' in 2009 so am I just missing something here or is it bad luck?
Here is my minimal example:
module Main where
import Graphics.UI.WX
import Graphics.UI.WXCore
main :: IO ()
main = start hello
hello :: IO ()
hello = do
f <- frame []
test <- button f [ text := "button" ]
set f [ layout := widget test ]