Thread Tools Display Modes
09-30-12, 11:59 PM   #1
Maggz
A Cyclonian
 
Maggz's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 45
creating a click thru frame?

ive seen some addons have an option you click to make specific frames click thru (non active) i was actually wondering how to create a simple frame that was click thru like that. i searched and had not found any other posts. So i thought i would post this out to see if someone could show me a simple clean method for performing this.
__________________
Maggz Turalyon-US
  Reply With Quote
10-01-12, 12:55 AM   #2
Elkano
A Flamescale Wyrmkin
 
Elkano's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2005
Posts: 131
it's easy:
frame:EnableMouse(false)
__________________
This posting is made of 100% recycled electrons.
  Reply With Quote
10-01-12, 12:59 AM   #3
humfras
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2009
Posts: 131
Originally Posted by Elkano View Post
it's easy:
frame:EnableMouse(false)
Link: http://www.wowpedia.org/API_Frame_EnableMouse
__________________
Author of VuhDo CursorCastBar OptiTaunt Poisoner RaidMobMarker
  Reply With Quote
10-01-12, 03:56 PM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
And to clarify, all frames are "click-through" by default. If a frame captures mouse input, that is because it has :EnableMouse(true) set on it.


(I now return myself to my regularly scheduled vacation...)
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
10-01-12, 04:16 PM   #5
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
That only applies to basic "Frame" objects; "Button" objects and many others have the mouse enabled by default.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
10-01-12, 05:05 PM   #6
Maggz
A Cyclonian
 
Maggz's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 45
ok so then by defining a mouse enable false it would make it so my frame is clickthru ......... awesome. Reason im asking is i have an addon where it puts up AGGRO on the screen when i have aggro and sometimes i want to drop a DND or consecrate and it annoys me cause the frame by default isnt click thru. So i thank all of you for your responses and clarifications, much appreciated.
__________________
Maggz Turalyon-US
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » creating a click thru frame?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off