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

[REBOL] Re: Beginner's questions on REBOL/Core and REBOL/View

From: chris:ross-gill at: 11-Sep-2002 9:39

Hi Andreas,
> - how can I (horizontally) align, e.g., a text label within > a window. I tried "right", but the label was still left > aligned. I tried "font: [align: right]" but REBOL didn't > like the "right" in there (writing 'right or "right" did > not have any effect...(well, both together didn't help as > well)
Unless you provide a specific width, the width of any style is based on the width of the provided text. So simply choose an appropriate width: view layout [ text 300 "Right Aligned" right ]
> - how can I "center" an image within the area, a layout has > provided?
Not sure if this is what you're looking for: lay: layout [size 300x300 img: image logo.gif] img/offset: max 0x0 lay/size - img/size / 2 view lay - Chris