Trying to specify resize-border for instance of dialog

24 views
Skip to first unread message

Don Green

unread,
Jun 25, 2021, 7:56:31 PM6/25/21
to Racket Users
When I specify as follows:

(define dialog2 (new dialog%
                         (label "Get-Prototype-dialog")
                         (style resize-border)
                         ))

Returned error:
resize-border: unbound identifier in: resize-border

Sorawee Porncharoenwase

unread,
Jun 25, 2021, 9:21:26 PM6/25/21
to Don Green, Racket Users

It should be 'resize-border. Notice the single quote character in front of “resize-border”.

FWIW, if you want to ask multiple short questions, you could also use the Racket Slack channel.

The sign up link: https://racket-slack.herokuapp.com/
The channel: https://racket.slack.com/


--
You received this message because you are subscribed to the Google Groups "Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to racket-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/dea0122e-02ab-4d79-8432-e32b8e733fc4n%40googlegroups.com.

Stefan Schwarzer

unread,
Jun 26, 2021, 12:13:16 AM6/26/21
to racket...@googlegroups.com
I guess you want 'resize-border (as a symbol). :-)

schle...@gmail.com

unread,
Jun 26, 2021, 8:13:35 AM6/26/21
to Racket Users
The docs say
style: (listof (or/c 'no-caption 'resize-border 'no-sheet 'close-button)) = null

so either (style (list 'resize-border)) or (style '(resize-border))

Reply all
Reply to author
Forward
0 new messages