WoW:Creating simple pop-up dialog boxes: Difference between revisions

m (Remove singatures made using ~ in main namespace)
Line 153: Line 153:


If you'll notice, you are actually setting the frame's data (which is passed as the first argument to the local function) ''after'' the user has clicked the button. I'm not exactly sure how this mechanism works, my initial guess is that the popup functions are run in a separate thread to allow for this kind of manipulation.
If you'll notice, you are actually setting the frame's data (which is passed as the first argument to the local function) ''after'' the user has clicked the button. I'm not exactly sure how this mechanism works, my initial guess is that the popup functions are run in a separate thread to allow for this kind of manipulation.
Added by [[user:egingell]]: The above works because script execution is not halted by the static popup.


== Notes and Observations ==
== Notes and Observations ==
Anonymous user