<div dir="ltr"><div>Hi Zoran,</div><div><br></div><div>wxhaskell refuses to compile with GHC 8.6.5 (or a more modern version). I have not tried anything prior to 8.6.5.</div><div><br></div><div>The last update to <a href="https://hackage.haskell.org/package/wx" target="_blank">https://hackage.haskell.org/package/wx</a> was over 7 years ago. The version of wxc on hackage won't compile with Cabal >= 2.2 because of a change to the signature of rawSystemStdInOut, which is needed during the configure step for the package. That's as far as I went; there could be other issues.<br></div><div><br></div><div>If you are able to create a docker image that compiles everything inside and reproduces your error with the scrollbar, I can give it a try.</div><div><br></div><div>There appears to have been an attempt at reviving the project: <a href="https://sourceforge.net/p/wxhaskell/bugs/" target="_blank">https://sourceforge.net/p/wxhaskell/bugs/</a>, and people at Zurihac were working on it. I don't know what happened.<br></div><div><br></div><div></div><div>Cheers,</div><div><br></div><div>Ivan<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 14 Oct 2024 at 09:31, Zoran Bošnjak <<a href="mailto:zoran.bosnjak@via.si" target="_blank">zoran.bosnjak@via.si</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear haskell cafe,<br>
I have a problem with scrolledWindow inside notebook, when running with <br>
the latest version of wxHaskell. See the minimal example below, where <br>
the scrollbar is not shown (the same sample is OK on the wxHaskell <br>
version from few years ago).<br>
<br>
I would appreciate a suggestion how to make the scrollbar work again (a <br>
workaround if possible). I have also filed the issue on the wxHaskell <br>
project page. But the project does not look like being super actively <br>
maintained.<br>
<br>
<a href="https://codeberg.org/wxHaskell/wxHaskell/issues/48" rel="noreferrer" target="_blank">https://codeberg.org/wxHaskell/wxHaskell/issues/48</a><br>
<br>
Minimal example:<br>
<br>
module Main where<br>
import Graphics.UI.WXCore<br>
import Graphics.UI.WX<br>
<br>
gui :: IO ()<br>
gui = do<br>
f <- frame [text := "Frame"]<br>
p <- panel f []<br>
nb <- notebook p []<br>
p1 <- scrolledWindow nb<br>
[ scrollRate := sz 20 20<br>
]<br>
texts <- mapM (\n -> staticText p1 [text := ("test" <> show n) ]) <br>
[1::Int ..20]<br>
set f<br>
[ layout := fill $ widget p<br>
, clientSize := sz 400 200<br>
]<br>
set p<br>
[ layout := fill $ tabs nb<br>
[ tab "tab1" $ container p1 $ column 5 (fmap widget texts)<br>
]<br>
]<br>
<br>
main :: IO ()<br>
main = start gui<br>
<br>
regards,<br>
Zoran<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div>