Button Attributes

  • bitmap bitmap_filename Loads the graphic for the next created button from the indicated bitmap file
  • icon icon_filename Loads the graphic for the next created button from the indicated icon file
  • name button_name Sets the name of next created button
  • windowcol red green blue Sets the window colour for the next created group of buttons
  • xpm xpm_filename Loads the graphic for the next created button from the indicated XPM file

    Button Creation

  • begin direction ... end Creates a button which opens/closes a group of buttons in the indicated direction
  • directory filespec Creates a button which opens/closes a directory listing based on the filespec provided
  • explore location Creates a button which opens explorer at the specified location
  • open filename [parameters] [working_dir] Creates a button which opens the file indicated, with optional parameters and working directory

    Directory Attributes

  • backcol red green blue Sets the background (window) colour for the next created directory button
  • font fontname [point_size] [attributes] Sets the font for the next created directory button
  • fontcol red green blue Sets the rgb font colour for the next created directory button

    Global Attributes

  • bitmapdir directory Sets the bitmap directory
  • buttonsize width height Sets the size of the buttons, in pixels
  • icondir directory Sets the icon directory
  • position x y Sets the position of the top-level button
  • titlebar infocus_icon_filename nofocus_icon_filename [height] from the indicated files and optionally sets the height
  • xpmdir directory Sets the XPM directory

    backcol red green blue

    Sets the background (window) colour for the next created directory button

    Category: Directory Attributes

    Example:

     backcol 255 255 0 
    
    The next created directory button will generate a file listing, on a yellow background (yuk)

    See Also: font fontname [point_size] [attributes], fontcol red green blue


    begin direction ... end

    Creates a button which opens/closes a group of buttons in the indicated direction

    Category: Button Creation

    The commands between begin and end can create any number/type of buttons that can be created at the top-level, and can include further nested begin..end commands

    The recognized directions are:

  • left, right, up, down - absolute directions
  • horizontal - either left or right, depending on the screen position
  • vertical - either up or down, depending on the screen position

    Example:

     name   "Letter Templates" 
     bitmap "PEN.BMP" 
     begin  "horizontal" 
          bitmap "LETTER.BMP" 
          name   "Bank" 
          open   "C:\Letters\Bank.TXT" 
          name   "Job Application" 
          open   "C:\Letters\Job.TXT" 
          name   "Party Invite" 
          open   "C:\Letters\Invite.TXT" 
     end 
    
    Creates a button with the name "Letter Templates", which opens a horizontal row of buttons, which in turn open various files

    See Also: directory filespec, explore location, open filename [parameters] [working_dir]


    bitmap bitmap_filename

    Loads the graphic for the next created button from the indicated bitmap file

    Category: Button Attributes

    The file must be in standard BMP format

    Default: "JITB.BMP"

    Example:

     bitmapdir "C:\Bitmaps\" 
     ... 
     bitmap "Pretty.BMP" 
    
    The next created button will display the bitmap loaded from "C:\Bitmaps\Pretty.BMP"

    See Also: icon icon_filename, name button_name, windowcol red green blue, xpm xpm_filename


    bitmapdir directory

    Sets the bitmap directory

    Category: Global Attributes

    Default: Bitmaps\

    Example:

     fontdir "C:\Bitmaps\" 
    
    Bitmaps will be loaded from the directory C:\Bitmaps\

    See Also: buttonsize width height, icondir directory, position x y, titlebar infocus_icon_filename nofocus_icon_filename [height], xpmdir directory


    buttonsize width height

    Sets the size of the buttons, in pixels

    Category: Global Attributes

    Default: 64 64

    Example:

     iconsize 64 32 
    
    Buttons will be displayed 64 pixels wide and 32 pixels high

    See Also: bitmapdir directory, icondir directory, position x y, titlebar infocus_icon_filename nofocus_icon_filename [height], xpmdir directory


    directory filespec

    Creates a button which opens/closes a directory listing based on the filespec provided

    Category: Button Creation

    Example:

     name "Replies to Letters" 
     bitmap "PEN.BMP" 
     directory "C:\Letters\Replys\*.TXT" 
    
    Creates a button with the name "Replies to Letters", which opens a directory listing of files matching "C:\Letters\Replys\*.TXT"

    See Also: begin direction ... end, explore location, open filename [parameters] [working_dir]


    explore location

    Creates a button which opens explorer at the specified location

    Category: Button Creation

    Example:

     bitmap  "WINDOWS.BMP" 
     name    "Windows" 
     explore "C:\Windows\" 
     bitmap  "EU.BMP" 
     name    "Euphoria Website" 
     explore "http://www.rapideuphoria.com/" 
    

    See Also: begin direction ... end, directory filespec, open filename [parameters] [working_dir]


    font fontname [point_size] [attributes]

    Sets the font for the next created directory button

    Category: Directory Attributes

    Defaults to the system font

    Example:

     font "Arial" 10 
    
    The next created directory button will generate a file listing, using a 10 point high Arial font

    See Also: backcol red green blue, fontcol red green blue


    fontcol red green blue

    Sets the rgb font colour for the next created directory button

    Category: Directory Attributes

    Defaults:

    Example:

     fontcol 0 127 127 
    
    The next created directory button will generate a file listing, using a cyan font

    See Also: backcol red green blue, font fontname [point_size] [attributes]


    icon icon_filename

    Loads the graphic for the next created button from the indicated icon file

    Category: Button Attributes

    Example:

     icondir "C:\Icons\" 
     ... 
     icon "Folder.ICO" 
    
    The next created button will display the icon loaded from "C:\Icons\Folder.ICO"

    See Also: bitmap bitmap_filename, name button_name, windowcol red green blue, xpm xpm_filename


    icondir directory

    Sets the icon directory

    Category: Global Attributes

    Default: Icons\

    Example:

     icondir "C:\Icons\" 
    
    Icons will be loaded from the directory C:\Icons\

    See Also: bitmapdir directory, buttonsize width height, position x y, titlebar infocus_icon_filename nofocus_icon_filename [height], xpmdir directory


    name button_name

    Sets the name of next created button

    Category: Button Attributes

    Currently does nothing, but maybe used in future to set tooltips or button text

    Default: JITB

    Example:

     name "Important Files" 
    
    The next created button will be labeled "Important Files"

    See Also: bitmap bitmap_filename, icon icon_filename, windowcol red green blue, xpm xpm_filename


    open filename [parameters] [working_dir]

    Creates a button which opens the file indicated, with optional parameters and working directory

    Category: Button Creation

    Examples:

     name "Music" 
     open "C:\Music\Song.MP3" 
    
     name "Connect to the Internet" 
     open "C:\WINDOWS\SYSTEM\CMMGR32.EXE" 
          "C:\WINDOWS\ALLUSE~1\APPLIC~1\MICROS~1\NETWORK\CONNEC~1\CM\pipex.cmp" 
          "C:\WINDOWS\SYSTEM" 
    

    See Also: begin direction ... end, directory filespec, explore location


    position x y

    Sets the position of the top-level button

    Category: Global Attributes

    The dimensions are taken to be a percentage of the total screen size, from the top left corner

    Default: 0 0 (top left corner of screen)

    Example:

     position 100 85 
    
    The top-level button will be displayed at the right hand edge of the screen, 85% from the top

    See Also: bitmapdir directory, buttonsize width height, icondir directory, titlebar infocus_icon_filename nofocus_icon_filename [height], xpmdir directory


    titlebar infocus_icon_filename nofocus_icon_filename [height]

    from the indicated files and optionally sets the height

    Category: Global Attributes

    Default: "TITLEBAR.BMP" "TITLEBAR_GREY.BMP" 8

    Example:

     bitmapdir "C:\Bitmaps\" 
     .. 
     titlebar "Titlebar1.BMP" "Titlebar2.BMP" 10 
    
    The titlebar attached to the top-level button will be displayed using bitmaps loaded from "C:\Bitmaps\Titlebar1.BMP" and "C:\Bitmaps\Titlebar2.BMP" and will be 10 pixels in height

    See Also: bitmapdir directory, buttonsize width height, icondir directory, position x y, xpmdir directory


    windowcol red green blue

    Sets the window colour for the next created group of buttons

    Category: Button Attributes

    In other words, the next begin command

    Example:

     windowcol 0 0 0 
    
    The next created group of buttons will be displayed on a black background

    See Also: bitmap bitmap_filename, icon icon_filename, name button_name, xpm xpm_filename


    xpm xpm_filename

    Loads the graphic for the next created button from the indicated XPM file

    Category: Button Attributes

    The file must be in BMP format

    Default: "JITB.BMP"

    Example:

     xpmdir "C:\XPM\" 
     ... 
     xpm "Pretty.XPM" 
    
    The next created button will display an XPM loaded from "C:\XPM\Pretty.XPM"

    See Also: bitmap bitmap_filename, icon icon_filename, name button_name, windowcol red green blue


    xpmdir directory

    Sets the XPM directory

    Category: Global Attributes

    Default: XPM\

    Example:

     xpmdir "C:\XPM\" 
    
    XPMs will be loaded from the directory C:\XPM\

    See Also: bitmapdir directory, buttonsize width height, icondir directory, position x y, titlebar infocus_icon_filename nofocus_icon_filename [height]