Class OldFoxGUIInfoBox
In: OldFoxGUIInfoBox.rb
Parent: Fox::FXDialogBox

This is an alternative to LogoGUIInfoBox which is compatible to older versions of FXRuby. Its functionality is identical to LogoGUIInfoBox.

Methods

new  

Public Class methods

Return a message window as a child window to the given parent.

[Source]

# File OldFoxGUIInfoBox.rb, line 14
  def initialize(parent)
    super(parent, "Info", DECOR_ALL, 0, 0, 400, 400, 0, 0, 0, 0, 0, 0)
    begin
      self.icon = FXPNGIcon.new(app, File.open("help.png", "rb"){|f| f.read},
        0, 0, 40, 40)
    rescue StandardError
    end
    button = Fox::FXButton.new(self, "&Close help window", nil, self, ID_ACCEPT,
    LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X)
    textbox = Fox::FXText.new(self, nil, 0,
    LAYOUT_FILL_X|LAYOUT_FILL_Y|TEXT_READONLY)
    button.backColor = FXRGB(255, 200, 0)
    textbox.backColor = FXRGB(255, 255, 200)
    textbox.textColor = FXRGB(0, 0, 0)
    textbox.verticalScrollbar.backColor = FXRGB(255, 200, 0)
    textbox.horizontalScrollbar.backColor = FXRGB(255, 200, 0)
    textbox.text = "RubyLogo - A Logo interpreter written in Ruby\n(c) 2005, 2006 Christian Kandler\n\n\nRefer to the included RDoc documentation for more information\nabout parser syntax and program details\n\n\nThe RubyLogo syntax:\n\nforward x\nmove the turtle x steps forward\n\nfd x\nalias for forward x\n\nbackward x\nmove the turtle x steps backward\n\nbk x\nalias for backward x\n\nright x\nturn the turtle x degrees to the right\n\nrt x\nalias for right x\n\nleft x\nturn the turtle x degrees to the left\n\nlt x\nalias for left x\n\nmove x y\nmove the turtle to the coordinates (x, y)\n\nhome\nmove the turtle to its starting coordinates\n\nturn x\nturn the turtle into the absolute direction x (clockwise\nrotation, 0\260 being the starting direction)\n\nreset\nreturn turtle into its starting position, remove all drawn\nlines but retain functions and variables\n\npenup\nraise pen from drawing area\n\npu\nalias for penup\n\npendown\nlower pen onto drawing area\n\npd\nalias for pendown\n\nhide\nmake the turtle invisible\n\nshow\nmake the turtle visible\n\ncolor name\nchange the turtle's color to name\n\nfg name\nalias for color name\n\nbackground name\nchange the background color to name\n\nbg name\nalias for background name\n\nrepeat x code end\nrepeat code for x times\n\nif condition then code end\nexecute code only if condition is true\n\nwhile condition do code end\nexecute code repeatedly as long as condition is true\n\ndef name [variables] code end\ndefine a function with optional variables. Calling the function\nthrough the command name will execute code. Functions must be\ncalled with the correct number of arguments.\n\nto name [variables] code end\nalias for def name [variables] code end\n"
  end

[Validate]