Rebol Programming/flash

From Wikibooks, open books for an open world
< Rebol Programming
Jump to navigation Jump to search

USAGE:[edit | edit source]

FLASH val /with face /offset xy 

DESCRIPTION:[edit | edit source]

Flashes a message to the user and continues.

FLASH is a function value.

ARGUMENTS[edit | edit source]

  • val -- (Type: any)

REFINEMENTS[edit | edit source]

  • /with
    • face -- Center over this face (Type: any)
  • /offset
    • xy -- (Type: any)

SOURCE CODE[edit | edit source]

flash: func [
    "Flashes a message to the user and continues." 
    /with face "Center over this face" 
    /offset xy
    val: layout [
        origin 10x10 
        image info.gif 
        origin 62x24 
        text bold form val 200x-1 
        origin 20x20
    val/text: "Information" 
    either offset [val/offset: xy] [
        center-face val 
        if with [center-face/with val face]
    view/new val