Module: WR::ModCreateWin

Included in:
Window
Defined in:
lib/wrb/base.rb

Overview

ModParent

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#default_hfontObject (readonly)

Returns the value of attribute default_hfont.



802
803
804
# File 'lib/wrb/base.rb', line 802

def default_hfont
  @default_hfont
end

Instance Method Details

#createObject

; dp “@%p, style=%#x”, self, @_style



803
804
805
806
807
808
809
810
811
812
813
814
815
# File 'lib/wrb/base.rb', line 803

def create() #; dp "@%p, style=%#x", self, @_style
  @_style &= ~RC::WS_VISIBLE if @_visible==false
  __create__(@_classname, @_caption.to_s, @_x, @_y, @_w, @_h, @_parent, @_idcmd, @_style,
        @_exstyle.to_i)
  self.accept_events *@_events if @_events
  @default_hfont = SendMessage(RC::WM_GETFONT, 0, 0)
  self.font = @_font if @_font
  self.visible = @_visible if @_visible
  self.setorder(@_zorder) if @_zorder
  self.margin = @_margin if @_margin
  set_subclass(@_setsubclass) if @_setsubclass
  self
end