[racket-users] Questions about quad

2016-05-18 Thread Daniel Prager
Hi Matthew I'm having a play with your quad type-setting library, which looks very promising as a way to generate typeset pdfs from Racket without invoking LaTeX. It looks really promising. Quick questions (which may also prompt a light update to the docs): - How do I require modules? @(requ

Re: [racket-users] Better stack traces for contract typos?

2016-05-18 Thread Robby Findler
I've pushed a fix for this. After the fix, the contract system properly cooperates with errortrace and so DrRacket should highlight exactly the right place in this program. It also makes the more standard stacktraces better too, but may not help you much in this case if you don't use errortrace (or

Re: [racket-users] GUI: clipping of controls fails on Linux but not on Windows

2016-05-18 Thread Matthew Flatt
There's not a good way to do this outside the primitives, because it's a matter of selecting the right GTK widgets. I've added 'hide-hscroll and 'hide-vscroll, which are like 'hscroll and 'vscroll (i.e., they allow the panel's size to be smaller than its content) but never show the corresponding s

Re: [racket-users] Racket gui choice% enabled #f question

2016-05-18 Thread Matthew Flatt
Are you running on OS X? It's a bug in `choice%`, and I've pushed a repair. Unfortunately, I don't have a good workaround for the current release, other than to ignore and revert changes to the control when it's supposed to be disabled. At Wed, 18 May 2016 11:22:02 -0700, Kevin Forchione wrote: >

Re: [racket-users] GUI: clipping of controls fails on Linux but not on Windows

2016-05-18 Thread Dmitry Pavlov
Matthew, > One possible fix is to add the 'hscroll style to the horizontal panel. > That change moves the program into "defined behavior" territory, since > a scrolling panel allows its content to be wider than itself. I just tried that and I see that it shows a scrollbar under the panel that I

Re: [racket-users] GUI: clipping of controls fails on Linux but not on Windows

2016-05-18 Thread Matthew Flatt
That is indeed in "undefined behavior" territory for the GUI library, because `racket/gui` doesn't pin down what happens when widgets overlap (including panels and buttons). One possible fix is to add the 'hscroll style to the horizontal panel. That change moves the program into "defined behavior"

[racket-users] Better stack traces for contract typos?

2016-05-18 Thread Braids Constance
i made a one-character typo that created an error without a relevant line number. when applying a (listof predicate) in my struct's contract, i accidentally supplied a non-predicate function -- which is very easy to do when the predicate is the name of a struct. (i forgot the question mark.)

[racket-users] Racket gui choice% enabled #f question

2016-05-18 Thread Kevin Forchione
Hi guys, What does “enable” do for choice%? I’ve noticed that other wedges prevent interaction when enabled #f, but not choice%. Here’s an example: #lang racket (require racket/gui) (define frame (new frame% [label "Testing"] [x 0] [y 0]

[racket-users] GUI: clipping of controls fails on Linux but not on Windows

2016-05-18 Thread Dmitry Pavlov
Hello, I would like to report two GUI issues; I do not know is they are related or not. I ran against those issues while working on spreadsheet-editor. The task is to clip a row of buttons (column buttons in my spreadsheet). Below I reproduce the issue using a simpler configuration than I use i

Re: [racket-users] Online courses/self-study

2016-05-18 Thread Adolfo Pérez Álvarez
Hey Todd, You may be interested in the "Systematic Programming Design" online courses offered by edX. AFAIK they're based on the first edition of HtDP. https://www.edx.org/xseries/how-code-systematic-program-design Hope this helps 2016-05-17 15:45 GMT+02:00 Todd O'Bryan : > Hey all, > > Since