A question about DrRacket, I’m finding that scrolling is not smooth and laggy. Is this an issue with my installation settings?
@haymail You deserve an answer. If you want to build a desktop application, then the GUI toolkit is the way to go. If you use a canvas
the gui can give you a dc
(drawing context) and picts can be drawn to a dc
using draw-pict
.
For examples of GUI programs that work on graphics, check: http://jeapostrophe.github.io/2013-05-13-vi-post.html and the blog posts of Alex: https://alex-hhh.github.io/2019/03/password-generator-gui.html Check also his series on the chess boards.
@soegaard2 I appreciate you taking the time to respond. I’ll check out those links. Thank you!
Btw - since the GUI toolkits uses objects, you will need to read up on objects/classes in the Guide. Many Racket programmers prefer functional programming, so you won’t see them in most materials directed towards beginners.
If you happen to know Java, the object/class system is very similar.
@aymano.osman are you using macOS?
yes
It’s a known issue, and a very frustrating one at that :( https://github.com/racket/drracket/issues/246
Thanks. I suspected it would not be only me. It is a shame because I do use DrRacket for some of its IDE capabilities, like renaming a variable and some code navigation.
Otherwise I use the emacs mode.
Workaround: Use the scroll bar. In the macos preferences choose to scoll by page. Then click in the scroll bar to go a page forward.
I’ll try that
Also fn+up and fn+down will scroll a page at a time.
I’m seriously tempted to learn how to use emacs just because of this issue
Has anyone tried the hack at the bottom of: https://github.com/racket/racket/issues/2861