About: UIOBJECT CheckButton   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

You can make a checkbox in WoW via the following commands: myCheckButton = CreateFrame("CheckButton", "myCheckButton_GlobalName", parentFrame, "ChatConfigCheckButtonTemplate"); This is where you locate the checkbox relative to its parent frame. Coordinates are (0,0) is the top-left corner of the parent, so a negative y-coordinate means down and positive x-coord means right. myCheckButton:SetPoint("TOPLEFT", 200, -65); myCheckButton_GlobalNameText:SetText("CheckBox Name"); Here is the code to do exactly the same thing, but it's not explicitly written. This is (arguably) less confusing.

AttributesValues
rdfs:label
  • UIOBJECT CheckButton
rdfs:comment
  • You can make a checkbox in WoW via the following commands: myCheckButton = CreateFrame("CheckButton", "myCheckButton_GlobalName", parentFrame, "ChatConfigCheckButtonTemplate"); This is where you locate the checkbox relative to its parent frame. Coordinates are (0,0) is the top-left corner of the parent, so a negative y-coordinate means down and positive x-coord means right. myCheckButton:SetPoint("TOPLEFT", 200, -65); myCheckButton_GlobalNameText:SetText("CheckBox Name"); Here is the code to do exactly the same thing, but it's not explicitly written. This is (arguably) less confusing.
dbkwik:wowwiki/pro...iPageUsesTemplate
abstract
  • You can make a checkbox in WoW via the following commands: myCheckButton = CreateFrame("CheckButton", "myCheckButton_GlobalName", parentFrame, "ChatConfigCheckButtonTemplate"); This is where you locate the checkbox relative to its parent frame. Coordinates are (0,0) is the top-left corner of the parent, so a negative y-coordinate means down and positive x-coord means right. myCheckButton:SetPoint("TOPLEFT", 200, -65); You can reference the name of your Check Box either by writing it explicitly, or by making a function call. Writing it explicitly "looks prettier", but might be confusing to anyone looking at your code, as the name for it seems made-up. Note arg2 in the creation call. It is the same as what is below, but we have appended it with "Text". This is necessary, I don't know why they didn't just set it up so you can do myCheckButton:Text, but we must work with what we're given. myCheckButton_GlobalNameText:SetText("CheckBox Name"); Here is the code to do exactly the same thing, but it's not explicitly written. This is (arguably) less confusing. getglobal(myCheckButton:GetName() .. 'Text'):SetText("CheckBox Name"); When mousing over your checkbox, you can have a tooltip appear, which is useful to describe the actions resulting from clicking the checkbox, without putting it all in the name. myCheckButton.tooltip = "This is where you place MouseOver Text."; Set up what happens when you click the checkbox. You can add other scripts similarly to how I have this one, you just need to change the "OnClick" to whatever else. Note that you cannot pass arguments to the "OnClick" script's function, but you can do other things as in a normal function myCheckButton:SetScript("OnClick", function() --do stuff end);
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software