Class: Fzeet::Windows::UISimplePropertySet

Inherits:
Object
  • Object
show all
Defined in:
lib/fzeet/windows/uiribbon.rb

Instance Method Summary collapse

Instance Method Details

#get(k) ⇒ Object



434
# File 'lib/fzeet/windows/uiribbon.rb', line 434

def get(k) Windows::PROPVARIANT.new.tap { |v| GetValue(k, v) } end

#prop(*args) ⇒ Object



436
437
438
439
440
441
# File 'lib/fzeet/windows/uiribbon.rb', line 436

def prop(*args)
	case args.length
	when 1; get(*args)
	else raise ArgumentError
	end
end

#uiprop(*args) ⇒ Object



443
444
445
446
447
# File 'lib/fzeet/windows/uiribbon.rb', line 443

def uiprop(*args)
	args[0] = Windows.const_get("UI_PKEY_#{args[0]}")

	prop(*args)
end