Re: [racket-dev] strange/wrong placement and sizing in racket/gui

2011-08-16 Thread Matthew Flatt
At Tue, 16 Aug 2011 12:25:10 +0200, Marijn wrote:
> > I noticed that text-fields are now missing their right border. Might be
> > related to your fix.
> > 
> > Marijn
> 
> There seems to be some positioning error, as text-fields are now
> displayed on top of their labels.

Thanks for the report! I've pushed a repair.

_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev


Re: [racket-dev] strange/wrong placement and sizing in racket/gui

2011-08-16 Thread Marijn
> I noticed that text-fields are now missing their right border. Might be
> related to your fix.
> 
> Marijn

There seems to be some positioning error, as text-fields are now
displayed on top of their labels. Sample program:


#lang racket/gui

(define root (new frame% (label "Test")))

(new text-field% (parent root) (label "Label") (init-value "value"))

(send root show #t)


Output attached.

Marijn
<>

signature.asc
Description: OpenPGP digital signature
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev

Re: [racket-dev] strange/wrong placement and sizing in racket/gui

2011-08-16 Thread Marijn
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 08/16/11 10:43, Marijn wrote:
> On 08/13/11 15:01, Matthew Flatt wrote:
>> At Thu, 11 Aug 2011 14:20:23 +0200, Marijn wrote:
>>> On 06/21/11 09:50, Marijn wrote:
 On 06/20/11 18:29, Matthew Flatt wrote:
> I think I've found the problem and pushed a fix.
 
 Thanks for the quick fix Matthew! 1) 2) and 3) are now working 
 fine :) but I do believe borders are still broken. For
 example:
 
 [...]
>>> 
>>> The above is still valid with yesterday's git (see original mail 
>>> for image attachment).
> 
>> I had forgotten about panel borders --- now fixed.
> 
>> Thanks for the reminder!
> 
> Thanks, it's working now.
> 
> Marijn

I noticed that text-fields are now missing their right border. Might be
related to your fix.

Marijn
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5KQtYACgkQp/VmCx0OL2zBJwCfYtAF9GUESjo6dynYFGz1e4fl
/2oAoKUYw4mjXN7vjBMRhK4hH//Bzhh+
=ognI
-END PGP SIGNATURE-
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev


Re: [racket-dev] strange/wrong placement and sizing in racket/gui

2011-08-16 Thread Marijn
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 08/13/11 15:01, Matthew Flatt wrote:
> At Thu, 11 Aug 2011 14:20:23 +0200, Marijn wrote:
>> On 06/21/11 09:50, Marijn wrote:
>>> On 06/20/11 18:29, Matthew Flatt wrote:
 I think I've found the problem and pushed a fix.
>>> 
>>> Thanks for the quick fix Matthew! 1) 2) and 3) are now working
>>> fine :) but I do believe borders are still broken. For example:
>>> 
>>> [...]
>> 
>> The above is still valid with yesterday's git (see original mail
>> for image attachment).
> 
> I had forgotten about panel borders --- now fixed.
> 
> Thanks for the reminder!

Thanks, it's working now.

Marijn

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5KLbIACgkQp/VmCx0OL2xrrQCdGOotvrGr5mkz1FI2wnBJ9f+u
ENIAnjD3n6XeccbbXCkMkfChTj85csTm
=diEH
-END PGP SIGNATURE-
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev


Re: [racket-dev] strange/wrong placement and sizing in racket/gui

2011-08-13 Thread Matthew Flatt
At Thu, 11 Aug 2011 14:20:23 +0200, Marijn wrote:
> On 06/21/11 09:50, Marijn wrote:
> > On 06/20/11 18:29, Matthew Flatt wrote:
> >> I think I've found the problem and pushed a fix.
> > 
> > Thanks for the quick fix Matthew! 1) 2) and 3) are now working fine
> > :) but I do believe borders are still broken. For example:
> > 
> > [...]
>
> The above is still valid with yesterday's git (see original mail for
> image attachment).

I had forgotten about panel borders --- now fixed.

Thanks for the reminder!

_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev


Re: [racket-dev] strange/wrong placement and sizing in racket/gui

2011-08-11 Thread Marijn
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/21/11 09:50, Marijn wrote:
> On 06/20/11 18:29, Matthew Flatt wrote:
>> I think I've found the problem and pushed a fix.
> 
> Thanks for the quick fix Matthew! 1) 2) and 3) are now working fine
> :) but I do believe borders are still broken. For example:
> 
> 
> #lang racket/gui
> 
> (define root (new frame% (label "Label")))
> 
> (define vp (new vertical-panel% (parent root) (vert-margin 5) (style
> '(border
> 
> (define vp2 (new vertical-panel% (parent vp) (horiz-margin 5) (style
> '(border
> 
> (define vp3 (new vertical-panel% (parent vp2) (vert-margin 5) (style
> '(border
> 
> (define btn (new button% (parent vp3) (label "button") (horiz-margin
> 5)))
> 
> (send root show #t)
> 
> 
> produces the attached window with just a button, but no borders for
> any of the panels...
> 
> Marijn

The above is still valid with yesterday's git (see original mail for
image attachment).

Marijn

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5DyQcACgkQp/VmCx0OL2xcUgCgnQzryZY/1mw9NCny0JiA6DN5
/zgAoLgg2kACqajFD/VinfS6RoFXaHL6
=XmUg
-END PGP SIGNATURE-
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev


Re: [racket-dev] strange/wrong placement and sizing in racket/gui

2011-06-21 Thread Marijn
On 06/20/11 18:29, Matthew Flatt wrote:
> I think I've found the problem and pushed a fix.

Thanks for the quick fix Matthew! 1) 2) and 3) are now working fine :)
but I do believe borders are still broken. For example:


#lang racket/gui

(define root (new frame% (label "Label")))

(define vp
  (new vertical-panel% (parent root) (vert-margin 5) (style '(border

(define vp2
  (new vertical-panel% (parent vp) (horiz-margin 5) (style '(border

(define vp3
  (new vertical-panel% (parent vp2) (vert-margin 5) (style '(border

(define btn
  (new button% (parent vp3) (label "button") (horiz-margin 5)))

(send root show #t)


produces the attached window with just a button, but no borders for any
of the panels...

Marijn
<>

signature.asc
Description: OpenPGP digital signature
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev

Re: [racket-dev] strange/wrong placement and sizing in racket/gui

2011-06-20 Thread Matthew Flatt
I think I've found the problem and pushed a fix.

At Mon, 20 Jun 2011 15:55:08 +0200, Marijn wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Hi list,
> 
> I have a couple of issues with current racket/gui behavior. I have
> created the following test-case:
> 
> 
> #lang racket/gui
> 
> (define list-editor%
>   (class vertical-panel%
> (init init-values parent)
> (super-new (parent parent))
> 
> (define (insert-item val)
>   (let* ((v (new vertical-panel% (parent this) )) ;**
> ; (ins (new button% (parent v) (label "insert")))
>  )
> (new text-field% (parent this) (label "") (init-value val))) )
> 
> ;(send this begin-container-sequence)
> (for ((v init-values)) (insert-item v))
> ;(send this end-container-sequence)
> 
> )) ; end define class
> 
> (define root (new frame% (label "List Editor")))
> 
> (new list-editor% (parent root) (init-values '("1" "2" "3")))
> 
> (send root show #t)
> 
> 
> 1) If you run the program like this, then 3 wide text-fields are created
> each with lots of empty space on top of it. The empty space shouldn't be
> there.
> 
> 2) Now uncomment the first commented line, the one that creates buttons
> and run again. The texfields are now narrow and instead of empty space
> there are now buttons. This case seems fine.
> 
> 3) Now uncomment the begin/end-container-sequence lines and run again.
> Suddenly the textfields are wide again and there is extra vertical space
> in between the textfields and buttons. I don't think that
> begin/end-container-sequence should ever influence the final result,
> since they are only to prevent flickering due to too frequent on-screen
> resizing.
> 
> 4) Finally, it seems that (style '(border)) doesn't work for me when I
> add it on the line marked ** as a property of the vertical-panel.
> 
> All this (tested) on Linux.
> 
> Marijn
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v2.0.17 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAk3/UTwACgkQp/VmCx0OL2wBKwCgiOstXY8bJfRiWplxuWXIl2e/
> gtYAniao8oxq9yOv14PMw/SaYgpjppk0
> =Cn3z
> -END PGP SIGNATURE-
> _
>   For list-related administrative tasks:
>   http://lists.racket-lang.org/listinfo/dev
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev


[racket-dev] strange/wrong placement and sizing in racket/gui

2011-06-20 Thread Marijn
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi list,

I have a couple of issues with current racket/gui behavior. I have
created the following test-case:


#lang racket/gui

(define list-editor%
  (class vertical-panel%
(init init-values parent)
(super-new (parent parent))

(define (insert-item val)
  (let* ((v (new vertical-panel% (parent this) )) ;**
; (ins (new button% (parent v) (label "insert")))
 )
(new text-field% (parent this) (label "") (init-value val))) )

;(send this begin-container-sequence)
(for ((v init-values)) (insert-item v))
;(send this end-container-sequence)

)) ; end define class

(define root (new frame% (label "List Editor")))

(new list-editor% (parent root) (init-values '("1" "2" "3")))

(send root show #t)


1) If you run the program like this, then 3 wide text-fields are created
each with lots of empty space on top of it. The empty space shouldn't be
there.

2) Now uncomment the first commented line, the one that creates buttons
and run again. The texfields are now narrow and instead of empty space
there are now buttons. This case seems fine.

3) Now uncomment the begin/end-container-sequence lines and run again.
Suddenly the textfields are wide again and there is extra vertical space
in between the textfields and buttons. I don't think that
begin/end-container-sequence should ever influence the final result,
since they are only to prevent flickering due to too frequent on-screen
resizing.

4) Finally, it seems that (style '(border)) doesn't work for me when I
add it on the line marked ** as a property of the vertical-panel.

All this (tested) on Linux.

Marijn
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3/UTwACgkQp/VmCx0OL2wBKwCgiOstXY8bJfRiWplxuWXIl2e/
gtYAniao8oxq9yOv14PMw/SaYgpjppk0
=Cn3z
-END PGP SIGNATURE-
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev