aymano.osman
2019-10-20 17:12:32

A question about DrRacket, I’m finding that scrolling is not smooth and laggy. Is this an issue with my installation settings?


soegaard2
2019-10-20 17:22:07

@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.


haymail
2019-10-20 17:46:30

@soegaard2 I appreciate you taking the time to respond. I’ll check out those links. Thank you!


soegaard2
2019-10-20 17:49:15

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.


soegaard2
2019-10-20 17:49:43

If you happen to know Java, the object/class system is very similar.


notjack
2019-10-20 18:19:06

@aymano.osman are you using macOS?


aymano.osman
2019-10-20 18:19:14

yes


notjack
2019-10-20 18:20:27

It’s a known issue, and a very frustrating one at that :( https://github.com/racket/drracket/issues/246


aymano.osman
2019-10-20 18:26:28

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.


aymano.osman
2019-10-20 18:27:37

Otherwise I use the emacs mode.


soegaard2
2019-10-20 18:28:02

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.


aymano.osman
2019-10-20 18:28:28

I’ll try that


soegaard2
2019-10-20 18:29:04

Also fn+up and fn+down will scroll a page at a time.


notjack
2019-10-20 18:29:06

I’m seriously tempted to learn how to use emacs just because of this issue


soegaard2
2019-10-20 18:32:17

Has anyone tried the hack at the bottom of: https://github.com/racket/racket/issues/2861