WoW:API EditBox SetFont: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(New page: To set the font for this object please see, API_FontInstance_SetFont. Instead of using FontInstance:SetFont use MyEditBoxObject:SetFont. Eg: local MyEditBox = CreateFrame('EditBox',...)
 
m (Move page script moved page API EditBox SetFont to WoW:API EditBox SetFont without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{widgetmethod}}
To set the font for this object please see, [[API_FontInstance_SetFont]].
To set the font for this object please see, [[API_FontInstance_SetFont]].


Line 4: Line 5:
   local MyEditBox = CreateFrame('EditBox', 'EditBoxGlobalName' or nil, ParentFrame or nil, EditBoxTemplate or nil)
   local MyEditBox = CreateFrame('EditBox', 'EditBoxGlobalName' or nil, ParentFrame or nil, EditBoxTemplate or nil)
   MyEditBox:SetFont(FontPath or nil, FontSize or nil, FontExtra or nil)
   MyEditBox:SetFont(FontPath or nil, FontSize or nil, FontExtra or nil)
 
[[Category:Widget methods]]
Please, read [[API_FontInstance_SetFont]] for more exact details.

Latest revision as of 04:45, 15 August 2023

Widget API ← EditBox < SetFont

To set the font for this object please see, API_FontInstance_SetFont.

Instead of using FontInstance:SetFont use MyEditBoxObject:SetFont. Eg:

 local MyEditBox = CreateFrame('EditBox', 'EditBoxGlobalName' or nil, ParentFrame or nil, EditBoxTemplate or nil)
 MyEditBox:SetFont(FontPath or nil, FontSize or nil, FontExtra or nil)