Re: [racket] label-string

2012-12-21 Thread Laurent
of choices lists must match the number of columns, and all choices lists must have the same number of items, otherwise an exn:fail:contract exception is raised. Cheers, Laurent > Yours, > > Original-Nachricht > > Datum: Thu, 20 Dec 2012 12:44:52 +0100 > > Von: L

Re: [racket] label-string

2012-12-21 Thread heraklea
20 Dec 2012 12:44:52 +0100 > Von: Laurent > An: murat demirtas > CC: racket > Betreff: Re: [racket] label-string > Hi, > > From the Help Desk: > (new tab-panel% > [choices choices] > [...] > > → (is-a?/c tab-panel%) > choices : (listof label-string

Re: [racket] label-string

2012-12-20 Thread Laurent
Hi, >From the Help Desk: (new tab-panel% [choices choices] [...] → (is-a?/c tab-panel%) choices : (listof label-string?) So it wants a list of label-string. Then clicking on `label-string?` gives: """ (label-string? v) → boolean? v : any/c Returns #t if v is a string whose length is l

[racket] label-string

2012-12-20 Thread heraklea
Hello friends, how can I convert a vector (define Vec #(1 2 3 4)) to a label-string to make a tab-panel?? I try this (define tab-panel (new tab-panel% (parent dialog) (choices (vector->list Vec but it fails due to contract violation: expected: