Re: [racket] newlines in strings not the same in DrRacket and Racket

2014-06-21 Thread Dr. Nikolaus Klepp
You are using Windows? Am Samstag, 21. Juni 2014 schrieb Jos Koot: > > I find the following: > > (write (string->list #< a > a > end > )) > > In DrRacket (#\a #\newline #\a) > In Racket: (#\a #return #\newline #\a #\return) > > Jos > > > > -Original Message- > > From: Robby Findler

[racket] real world application

2013-08-17 Thread Mag. Dr. Nikolaus Klepp
For the "Racket Hall of Fame": we programmed the core component for ecg analysis with DrRacket: http://pulse7.at -- Mag. Dr. Nikolaus Klepp Einnehmerstraße 14 A-4810 Gmunden Tel.: +43 650 82 11 724 email: off...@klepp.biz Racket Users list: http://li

[racket] question/problem on racket/gui and 10000 pixel constraint

2013-06-12 Thread Mag. Dr. Nikolaus Klepp
In answer to my question, the easy way is to patch racket-5.3.4/collects/mred/private/check.rkt and racket-5.3.4/collects/mred/private/mrcontainer.rkt Anybody in need of this, patch is attached. Nik > My application again :-) > >I need to display some hundred plots in a vertical-panel%. Each g

[racket] question/problem on racket/gui and 10000 pixel constraint

2013-06-12 Thread Mag. Dr. Nikolaus Klepp
My application again :-) I need to display some hundred plots in a vertical-panel%. Each graph is ~ 150 pixel in height (and should not be smaller than 100 pixel). Now there is a size constraint of 1 pixel per area-container<%>, so that I cannot display 100 graphs at a time. Is there an ea

Re: [racket] question/problem on racket/gui and "on-paint" flooding

2013-06-12 Thread Mag. Dr. Nikolaus Klepp
nted. They only > recompute the bitmap when the plot is manipulated (i.e. zoomed or > rotated). If you put plot snips on your GUI, you would get manipulatable > plots, and the snips' internal caching might keep your app responsive > when being flooded by paint messages. > > Nei

[racket] question/problem on racket/gui and "on-paint" flooding

2013-06-11 Thread Mag. Dr. Nikolaus Klepp
As I'm writing a real-world application in racket (and it's a great tool to do so!) I just ran into another problem: When a a panel% has a visible scrollbar and there are enough children to actually use that scrollbar, then all children get flooded with on-paint calls when the scrollbar is use

Re: [racket] Question on racket/gui and font

2013-06-11 Thread Mag. Dr. Nikolaus Klepp
orkaround. > > At Mon, 10 Jun 2013 12:23:22 +0200, "Mag. Dr. Nikolaus Klepp" wrote: > > Hi! > > > > I'm having some issue with fonts when creating GUI elements. > > > > In my understanding, when I pass [font some-font] when creating a new > >

[racket] Question on racket/gui and font

2013-06-11 Thread Mag. Dr. Nikolaus Klepp
Hi! I'm having some issue with fonts when creating GUI elements. In my understanding, when I pass [font some-font] when creating a new object, then that object should take that font to render its controls. This works on button%, but not on other elemts like group-box-panel% or tab-panel%. So,

[racket] Question on racket/gui and font

2013-06-10 Thread Mag. Dr. Nikolaus Klepp
ame] [label " custom-font " ] [font (make-object font% 28 'default)] ) (send frame show #t) -- Mag. Dr. Nikolaus Klepp Einnehmerstraße 14 A-4810 Gmunden Tel.: +43 650 82 11 724 email: off...@klepp.biz dr.kl...@gmx.at Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Full command line arguments

2013-01-16 Thread Nikolaus Klepp
Am Mittwoch, 16. Januar 2013 schrieb Tony Garnock-Jones: > On 01/15/2013 05:40 AM, Laurent wrote: > > The purpose is to be able to relaunch the process. > > Another approach might be to create an outer wrapper which builds a > nested namespace, custodian etc, within which your program is > dynamic-

[racket] fullscreen without windowmanager?

2013-01-08 Thread Nikolaus Klepp
Hi all! I want to make a follscreen window on Xorg without windowmanager. This code works, when a windowmanager is running, but it fails without, i.e. the window is 300x300. #lang racket/gui (define frame (new frame% [label "test"] [width 300] [height 300] [style (list

[racket] focus-follows-mouse in DrRacket

2012-12-16 Thread Mag. Dr. Nikolaus Klepp
Hi! Is there a way to make DrRacket use the "focus-follows-mouse" model? i.e. I do not want to click the mouse button when I change from REPL to editor and vice versa, I just want to move the mouse over. Nik -- Mag. Dr. Nikolaus Klepp Einnehmerstraße 14 A-4810 Gmunden Tel.: +43 650

Re: [racket] printer-dc% and end-doc

2012-11-20 Thread Nikolaus Klepp
> > At Tue, 20 Nov 2012 09:20:06 +0100, "Nikolaus Klepp" wrote: > > Thanks to Matthew I have a printer dialog :-) > > > > I can actually print a page, but (send dc end-doc) throws an error. > > > > Example: > > > > (define pss (get-page

[racket] printer-dc% and end-doc

2012-11-20 Thread Mag. Dr. Nikolaus Klepp
Thanks to Matthew I have a printer dialog :-) I can actually print a page, but (send dc end-doc) throws an error. Example: (define pss (get-page-setup-from-user "Drucke das Wunderwerk")) (when pss (current-ps-setup pss) (define dc (new printer-dc%)) (send dc start-doc "") (sen

[racket] printer-dc% and end-doc

2012-11-20 Thread Nikolaus Klepp
Thanks to Matthew I have a printer dialog :-) I can actually print a page, but (send dc end-doc) throws an error. Example: (define pss (get-page-setup-from-user "Drucke das Wunderwerk")) (when pss (current-ps-setup pss) (define dc (new printer-dc%)) (send dc start-doc "") (sen

[racket] printer-dc% and printer dialog

2012-11-18 Thread Nikolaus Klepp
Hi all! I would like to get a printer dialog. The docs say, "When a printer-dc% object is created, the user gets platform-specific modal dialogs for configuring the output." Now, when I try it: (new printer-dc%) I get a dc back, but no dialog appears. What am I doing wrong? Nik ___

[racket] printer-dc% and printer dialog

2012-11-18 Thread Nikolaus Klepp
Hi all! I would like to get a printer dialog. The docs say, "When a printer-dc% object is created, the user gets platform-specific modal dialogs for configuring the output." Now, when I try it: (new printer-dc%) I get a dc back, but no dialog appears. What am I doing wrong? Nik _

Re: [racket] tinyscheme vs. racket question

2012-09-10 Thread Nikolaus Klepp
> Carl Eastlund > > On Mon, Sep 10, 2012 at 12:41 PM, Nikolaus Klepp wrote: > > Hi all, > > > > In tinyscheme I can do this: > > > (+ (string->symbol "1.2") 1) > > > > 2.2 > > > > In racket that does not work, because > &

[racket] tinyscheme vs. racket question

2012-09-10 Thread Nikolaus Klepp
Hi all, In tinyscheme I can do this: > (+ (string->symbol "1.2") 1) 2.2 In racket that does not work, because > (string->symbol "1.2") '|1.2| which is not a number. I can use this workaround: > (+ (read (open-input-string "1.2")) 1) 2.2 But is there a clean way to get the above line from

Re: [racket] Maxima in Racket

2012-03-12 Thread Mag. Dr. Nikolaus Klepp
Now tht's really nice! Thanks for sharing. Nik Am Sonntag, 11. März 2012 schrieb Jens Axel Søgaard: > Hi All, > > The Maxima in Racket experiment now has a working REPL. > I have attached a screenshot. > > The Maxima command tex(expr) will convert an expression into TeX. > Jays slideshow-latex pa

Re: [racket] plot3d & canvas question

2012-02-08 Thread Nikolaus Klepp
Am Mittwoch, 8. Februar 2012 schrieb Neil Toronto: > Unfortunately, you can't. You'll have to delete the old one from the > read-only-text% and insert a new one. I was afraid, you'd say that. > If this is for resizing, you have another problem: creating a new plot > will reset the viewing angles.

Re: [racket] plot3d & canvas question

2012-02-08 Thread Nikolaus Klepp
Am Dienstag, 7. Februar 2012 schrieb Neil Toronto: > The relevant code is in "/collects/plot/common/gui.rkt", > specifically the `make-snip-frame' function. > > The basic idea is to make a canvas containing a single read-only-text% > that is initially writable, insert the snip (which you get from >

Re: [racket] plot3d & canvas question

2012-02-07 Thread Nikolaus Klepp
Am Dienstag, 7. Februar 2012 schrieb Neil Toronto: > The relevant code is in "/collects/plot/common/gui.rkt", > specifically the `make-snip-frame' function. > > The basic idea is to make a canvas containing a single read-only-text% > that is initially writable, insert the snip (which you get from >

[racket] plot3d & canvas question

2012-02-06 Thread Nikolaus Klepp
Hi! When I create a 3D plot in DrRacket, I can rotate the plot by clicking on it and dragging the mouse. Now I would like to embed the same plot with the same ability in my GUI. Is there an easy way to do that? Nik -- Mag. Dr. Nikolaus Klepp Einnehmerstraße 14 A-4810 Gmunden Tel.: +43 650 82