Class: Watobo::Plugin::Catalog::About
- Inherits:
-
FXDialogBox
- Object
- FXDialogBox
- Watobo::Plugin::Catalog::About
- Defined in:
- plugins/catalog/catalog.rb
Instance Method Summary collapse
-
#initialize(owner, text) ⇒ About
constructor
A new instance of About.
Constructor Details
#initialize(owner, text) ⇒ About
Returns a new instance of About.
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'plugins/catalog/catalog.rb', line 28 def initialize(owner, text) super(owner, "About Catalog-Scanner", :opts => DECOR_TITLE|DECOR_BORDER|DECOR_CLOSE|DECOR_RESIZE,:width=>400, :height=>300) self.icon = Watobo::Gui::Icons::ICON_WATOBO main = FXVerticalFrame.new(self, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|FRAME_GROOVE, :padding => 0) main.backColor = FXColor::White about_txt = FXText.new(main, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y|TEXT_WORDWRAP) about_txt.editable = false about_txt.disable about_txt.setText text about_txt.font = FXFont.new(getApp(), "courier", 12, FONTWEIGHT_BOLD) about_txt.backColor = FXColor::White bottom = FXHorizontalFrame.new(main, :opts => LAYOUT_FILL_X) FXButton.new(bottom, "OK" , :target => self, :selector => FXDialogBox::ID_ACCEPT, :opts => BUTTON_NORMAL|LAYOUT_RIGHT) end |