Module: Fzeet::EditMethods

Included in:
Edit
Defined in:
lib/fzeet/windows/user/Control/Edit.rb

Instance Method Summary collapse

Instance Method Details

#clearObject



73
# File 'lib/fzeet/windows/user/Control/Edit.rb', line 73

def clear; self.text = ''; self end

#cuebanner=(text) ⇒ Object



77
# File 'lib/fzeet/windows/user/Control/Edit.rb', line 77

def cuebanner=(text) Windows.LPWSTR(text) { |p| sendmsg(:setcuebanner, 1, p) } end

#hideBalloontipObject



94
# File 'lib/fzeet/windows/user/Control/Edit.rb', line 94

def hideBalloontip; sendmsg(:hideBalloontip); self end

#select(s = 0, e = -1)) ⇒ Object



75
# File 'lib/fzeet/windows/user/Control/Edit.rb', line 75

def select(s = 0, e = -1) sendmsg(:setsel, s, e); self end

#showBalloontip(text, title = '', icon = 1) ⇒ Object



79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/fzeet/windows/user/Control/Edit.rb', line 79

def showBalloontip(text, title = '', icon = 1)
	Windows.LPWSTR(text) { |ptext| Windows.LPWSTR(title) { |ptitle|
		ebt = Windows::EDITBALLOONTIP.new

		ebt[:cbStruct] = ebt.size
		ebt[:pszTitle] = ptitle
		ebt[:pszText] = ptext
		ebt[:ttiIcon] = Fzeet.constant(icon, :tti_)

		sendmsg(:showBalloontip, 0, ebt.pointer)
	}}

	self
end