Module: Fzeet::EditMethods

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

Instance Method Summary collapse

Instance Method Details

#clearObject



5
# File 'lib/fzeet/Control/Edit.rb', line 5

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

#cuebanner=(text) ⇒ Object



9
# File 'lib/fzeet/Control/Edit.rb', line 9

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

#hideBalloontipObject



26
# File 'lib/fzeet/Control/Edit.rb', line 26

def hideBalloontip; sendmsg(:hideBalloontip); self end

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



7
# File 'lib/fzeet/Control/Edit.rb', line 7

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

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



11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/fzeet/Control/Edit.rb', line 11

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