WoW:UIHANDLER OnTabPressed: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Aded cat-tag)
m (Added caveat.)
Line 2: Line 2:


  EditBox:OnTabPressed()
  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. [[User:Egingell|Egingell]] 09:27, 13 April 2007 (EDT)


Possible for inserting a tab character("\t")?
Possible for inserting a tab character("\t")?
  EditBox:SetScript("OnTabPressed", function()
  EditBox:SetScript("OnTabPressed", function()
   this:SetText(this:GetText().."\t");
   this:SetText(this:GetText().."\t");

Revision as of 13:27, 13 April 2007

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