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



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

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

#prop(*args) ⇒ Object



417
418
419
420
421
422
# File 'lib/fzeet/windows/uiribbon.rb', line 417

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

#uiprop(*args) ⇒ Object



424
425
426
427
428
# File 'lib/fzeet/windows/uiribbon.rb', line 424

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

	prop(*args)
end