class Fzeet::DateTimePicker
Constants
- Prefix
Public Class Methods
crackNotification(args)
click to toggle source
# File lib/fzeet/windows/comctl/DateTimePicker.rb, line 88 def self.crackNotification(args) case args[:notification] when Windows::DTN_DATETIMECHANGE args[:dtc] = Windows::NMDATETIMECHANGE.new(FFI::Pointer.new(args[:lParam])) args[:st] = args[:dtc][:st] if args[:dtc][:dwFlags] == Windows::GDT_VALID end end
new(parent, id, opts = {}, &block)
click to toggle source
Calls superclass method
# File lib/fzeet/windows/comctl/DateTimePicker.rb, line 96 def initialize(parent, id, opts = {}, &block) super('SysDateTimePick32', parent, id, opts) @parent.on(:notify, @id, &block) if block end
Public Instance Methods
on(notification, &block)
click to toggle source
# File lib/fzeet/windows/comctl/DateTimePicker.rb, line 102 def on(notification, &block) @parent.on(:notify, @id, Fzeet.constant(notification, *self.class::Prefix[:notification]), &block) self end