WoW:Make Frames Closable With the "Esc" Key: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:
where MainFrameName is the name of your main frame of the application.
where MainFrameName is the name of your main frame of the application.


[[Category: HOWTOs]]
[[Category: HOWTOs|Make frames closable with the ESCape key]]

Revision as of 22:03, 23 January 2006

To make your main frame closable with the ESCape key go into the OnLoad function and add the following line :

tinsert(UISpecialFrames,"MainFrameName");

where MainFrameName is the name of your main frame of the application.