Module: WR::RC::ModComboCommon

Defined in:
lib/wrb/combocommon.rb

Instance Method Summary collapse

Instance Method Details

#droppedheightObject



48
49
50
# File 'lib/wrb/combocommon.rb', line 48

def droppedheight()
  @_droppedheight
end

#droppedheight=(h) ⇒ Object



51
52
53
# File 'lib/wrb/combocommon.rb', line 51

def droppedheight=(h)
  self.h = @_droppedheight = h
end

#droppedsizeObject



55
56
57
58
59
60
61
62
63
# File 'lib/wrb/combocommon.rb', line 55

def droppedsize()
  if alive?
    rc = RECT.new
    SendMessage(CB_GETDROPPEDCONTROLRECT, 0, rc)
    [rc.right-rc.left, rc.bottom-rc.top]
  else
    [@_droppedwidth, @_droppedheight]
  end
end

#h=(ht) ⇒ Object



43
44
45
46
# File 'lib/wrb/combocommon.rb', line 43

def h=(ht)
  @_droppedheight = ht if ht > self.h
  super
end

#move(*args) ⇒ Object



70
71
72
73
74
75
# File 'lib/wrb/combocommon.rb', line 70

def move(*args)
  ht = args[3]
  super
  @_droppedheight = ht if ht && ht > self.h
  self
end

#resize(w, h) ⇒ Object



65
66
67
68
# File 'lib/wrb/combocommon.rb', line 65

def resize(w, h)
  @_droppedheight = h if h > self.h
  super
end