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

[REBOL] Re: is this a bug?

From: arolls:bigpond:au at: 11-Apr-2001 20:52

Rishi, As Brett says, specifying tabs 40 means there are tab positions at 40, 80, 120 etc. Run the following program. If you look at the offset and size of the first field, you will notice that its bottom edge is at 44. Then we add on the default spacing between elements (8) and we get to 52. It has missed the tab at position 40 by 12 pixels. Therefore the next tab will be at 80. rebol [] view layout [ ;space 0 tabs 40 f1: field ; 200x19 tab f2: field tab f3: field do [ print [f1/offset f1/size] print [f2/offset f2/size] print [f3/offset f3/size] ] ] If you reduce the vertical size of f1 to 11, [f1: field 200x11], then it tabs correctly. Greater than 11 jumps over the tab. If you specify spacing of zero, and the vertical size of f1 to 19 (uncomment the comments above), then you will see that the first field just fits in before the second tab position, 40, which is greater than 20+19. I am looking to see if there is a way to set an offset to the tab positions. Anton.