Sha256: 81d4d355cf1223ae1674c35d813dbf14ec4fd65ccd3afef78376079690d7dba4

Contents?: true

Size: 906 Bytes

Versions: 13

Compression:

Stored size: 906 Bytes

Contents


class FXAboutDialogBox < FXDialogBox

  def initialize(parent, title, text)
    decor = DECOR_TITLE|DECOR_BORDER|DECOR_CLOSE

    super( parent, title, decor, 40, 40, 0, 0 )
    mainFrame = FXVerticalFrame.new(self,
				    FRAME_SUNKEN|FRAME_THICK|
				    LAYOUT_FILL_X|LAYOUT_FILL_Y)

    frame = FXHorizontalFrame.new(mainFrame, LAYOUT_SIDE_TOP|LAYOUT_FILL_X)

    FXLabel.new(frame, text, nil, 0, LAYOUT_FILL_ROW)

#     c = FXText.new(frame, nil, 0, LAYOUT_FILL_ROW)
#     c.visibleRows    = 10
#     c.visibleColumns = 80
#     c.editable = false
#     c.text = text

    buttons = FXHorizontalFrame.new(mainFrame, 
				    LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|
				    PACK_UNIFORM_WIDTH)
    # Accept
    FXButton.new(buttons, "&Super!", nil, self, FXDialogBox::ID_ACCEPT,
		 FRAME_RAISED|LAYOUT_FILL_X|FRAME_THICK|LAYOUT_RIGHT|LAYOUT_CENTER_Y)

    create
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ifmapper-0.5 lib/IFMapper/FXAboutDialogBox.rb
ifmapper-0.6 lib/IFMapper/FXAboutDialogBox.rb
ifmapper-0.8.1 lib/IFMapper/FXAboutDialogBox.rb
ifmapper-0.8.5 lib/IFMapper/FXAboutDialogBox.rb
ifmapper-0.8 lib/IFMapper/FXAboutDialogBox.rb
ifmapper-0.9.5 lib/IFMapper/FXAboutDialogBox.rb
ifmapper-0.9.7 lib/IFMapper/FXAboutDialogBox.rb
ifmapper-0.9.6 lib/IFMapper/FXAboutDialogBox.rb
ifmapper-0.7 lib/IFMapper/FXAboutDialogBox.rb
ifmapper-0.9 lib/IFMapper/FXAboutDialogBox.rb
ifmapper-0.9.8 lib/IFMapper/FXAboutDialogBox.rb
ifmapper-0.9.9 lib/IFMapper/FXAboutDialogBox.rb
ifmapper-1.0.0 lib/IFMapper/FXAboutDialogBox.rb