Class: Fzeet::MonthCalendar
- Includes:
- MonthCalendarMethods
- Defined in:
- lib/fzeet/windows/comctl/MonthCalendar.rb
Constant Summary collapse
- Prefix =
{ xstyle: [:ws_ex_], style: [:mcs_, :ws_], message: [:mcm_, :ccm_, :wm_], notification: [:mcn_, :nm_] }
Constants included from WindowMethods
Instance Attribute Summary
Attributes inherited from Control
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(parent, id, opts = {}, &block) ⇒ MonthCalendar
constructor
A new instance of MonthCalendar.
- #on(notification, &block) ⇒ Object
Methods inherited from Control
Methods included from WindowMethods
#[], #capture=, #capture?, #dialog=, #dialog?, #dlgmsg?, #drawMenuBar, #eachChild, #enabled=, #enabled?, #focus=, #focus?, #invalidate, #location, #location=, #long, #menu, #menu=, #message, #paint, #position, #position=, #postmsg, #question, #rect, #reframe, #sendmsg, #show, #size, #size=, #style, #style?, #text, #text=, #textlen, #topmost=, #topmost?, #update, #visible=, #visible?, #xstyle, #xstyle?
Methods included from Toggle
Constructor Details
#initialize(parent, id, opts = {}, &block) ⇒ MonthCalendar
Returns a new instance of MonthCalendar.
85 86 87 88 89 |
# File 'lib/fzeet/windows/comctl/MonthCalendar.rb', line 85 def initialize(parent, id, opts = {}, &block) super('SysMonthCal32', parent, id, opts) @parent.on(:notify, @id, &block) if block end |
Class Method Details
.crackNotification(args) ⇒ Object
77 78 79 80 81 82 83 |
# File 'lib/fzeet/windows/comctl/MonthCalendar.rb', line 77 def self.crackNotification(args) case args[:notification] when Windows::MCN_SELCHANGE args[:sc] = Windows::NMSELCHANGE.new(FFI::Pointer.new(args[:lParam])) args[:st1], args[:st2] = args[:sc][:stSelStart], args[:sc][:stSelEnd] end end |