Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Problem with negative offset of layout

 [1/7] from: bzr:francenet at: 23-Dec-2001 18:28


Hi, It seems that REBOL has problem scrolling layout by a negative offset. Here is an example which does not work, at least on my machine under Linux. When the horizontal or vertical offset is less than -20, the layout is uncorrectly shifted off by one pixel. Could you tell me whether you have the same problem? Or whether there is something wrong in my code? Thanks in advance. ---------------------------------------------------------------------------- REBOL [ ] grid-layout: layout [ origin 0x0 space 0x0 box 201x201 white effect [ grid 20x20 ] ] grid-layout/offset: 0x0 main-layout: layout [ grid-container: box 201x201 with [pane: grid-layout] grid-offset: label 200x24 "" across pad 60 button "up" [ grid-layout/offset/y: grid-layout/offset/y - 20 grid-offset/text: grid-layout/offset show grid-offset show grid-container ] return button "left" [ grid-layout/offset/x: grid-layout/offset/x - 20 grid-offset/text: grid-layout/offset show grid-offset show grid-container ] button "right" [ grid-layout/offset/x: grid-layout/offset/x + 20 grid-offset/text: grid-layout/offset show grid-offset show grid-container ] return pad 60 button "down" [ grid-layout/offset/y: grid-layout/offset/y + 20 grid-offset/text: grid-layout/offset show grid-offset show grid-container ] ] view main-layout

 [2/7] from: brett:codeconscious at: 24-Dec-2001 6:45


There does not appear to be anything wrong with your code as far as I can tell, and yes I can see the effect on my machine (Windows NT4). Brett.

 [3/7] from: arolls:idatam:au at: 24-Dec-2001 15:12


Same here on Win2k. You should probably send to feedback and we'll see what they say. Anton.

 [4/7] from: jasonic:cunliffe:verizon at: 23-Dec-2001 14:10


> It seems that REBOL has problem scrolling layout by a negative offset. > Here is an example which does not work, at least on my machine under
<<quoted lines omitted: 3>>
> Could you tell me whether you have the same problem? Or whether there > is something wrong in my code?
REBOL/Command/View [Win98se] => works OK here. Is it possible linux fil endings are throwing your script off? Anyway, thanks for showing me very cool view scrolling.. ./Jason

 [5/7] from: sunandadh:aol at: 27-Dec-2001 8:54


> > Could you tell me whether you have the same problem? Or whether there > > is something wrong in my code? > > REBOL/Command/View [Win98se] => works OK here
But does not work for Rebol/View [Win98]. Two earlier responses duplicated the error on Win NT4 and 2000 (Rebol version not specified). Could it be a bug in the freebie version? Sunanda

 [6/7] from: philb:upnaway at: 28-Dec-2001 9:18


Hi Sunanda, I use REBOL/View/Pro on Win98 here and I see the problem with the grid Cheers Phil === Original Message ===
> > Could you tell me whether you have the same problem? Or whether there > > is something wrong in my code? > > REBOL/Command/View [Win98se] => works OK here
But does not work for Rebol/View [Win98]. Two earlier responses duplicated the error on Win NT4 and 2000 (Rebol version not specified). Could it be a bug in the freebie version? Sunanda

 [7/7] from: bzr:francenet at: 28-Dec-2001 12:00


Hello, As advised by some of you, I notified RT of the problem through feedback. I let you know if there is any answer...

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted