[plt-scheme] More MrEd bugs or glitches

From: Ivanyi Peter (pivanyi at freemail.hu)
Date: Fri Jun 29 08:04:31 EDT 2007


I found two more glitches or bugs.
- I think the first is a bug. The problem is that in the
  widget/object the on-subwindow-event does no receive the
  left-up event under Windows XP. It is OK under Linux.
  The code to demonstrate the problem is this:

; ----------------------------------------------------------
(define my-slider%
  (class slider%
    (define/override (on-subwindow-event w e)
      (if (equal? (send e get-event-type) 'left-down)
        (display "bingo down\n"))
      (if (equal? (send e get-event-type) 'left-up)
        (display "bingo up\n"))

(define w (new frame% (label "tt")))

(define s (new my-slider% 
               (label "slider")
               (parent w)
               (min-value 0)
               (max-value 100)
               (init-value 0)))

(send w show #t)

; ----------------------------------------------------------

Under Windows XP you will never see the "bingo up" message.

- The second problem is with the message-box. If the message
  becomes too long then the window will contain several lines.
  Run the code below and you will see a large window.
  Comment out the line containing "horizontal panel" and
  obviously the message is shorter but the height of the window 
  becomes smaller. 

(message-box "Error" 
             (string-append "Property '"
                            "' is missing from '"
                            "' ")
             #f '(ok stop))

Best regards,

Peter Ivanyi

15% KEDVEZMÉNY minden PLASZTIKAI MŰTÉTRE az Aesthetica orvosi központban! Klikk ide!

Posted on the users mailing list.