WoW:UIHANDLER OnTabPressed: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
-- As documented by [[user:egingell|egingell]] | -- As documented by [[user:egingell|egingell]] | ||
OnTabPressed event, insert an indent with: | |||
EditBox:Insert(" "); ''(4 spaces)'' | |||
This will insert 4 spaces at your cursor's position. A tab character or \t will not work, therefore spaces are used. | |||
--[[user:Muckles|Muckles]] | |||
{{DEFAULTSORT:OnTabPressed}} | {{DEFAULTSORT:OnTabPressed}} |
Revision as of 20:01, 8 April 2009
← WoW API
EditBox:OnTabPressed()
You can only append or prepend a tab no matter what. I don't think there's a way to insert a tab at the cursor position, unless there's a function that will get the position of the cursor. Egingell 09:27, 13 April 2007 (EDT)
Possible for inserting a tab character("\t")?
EditBox:SetScript("OnTabPressed", function() this:SetText(this:GetText().."\t"); end;
-- As documented by egingell
OnTabPressed event, insert an indent with:
EditBox:Insert(" "); (4 spaces)
This will insert 4 spaces at your cursor's position. A tab character or \t will not work, therefore spaces are used.
--Muckles
Warning: Default sort key "OnTabPressed" overrides earlier default sort key "UIHANDLER OnTabPressed".