-
Posted by numerical25 on Fri, 04 Sep 2009 19:37:35
I am having problems making my form box movable. Below is my code. I tried everything in the book and more.
THIS IS MY FORM
<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.blizzard.com/wow/ui/"> <Frame name="combatTrackerFrame" parent="UIParent" toplevel="true" movable="true" frameStrata="LOW" enableMouse="true"> <Size> <AbsDimension x="175" y="40" /> </Size> <Anchors> <Anchor point="CENTER"> <Offset x="197" y="25" /> </Anchor> </Anchors> <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> <BackgroundInsets> <AbsInset left="11" right="12" top="12" bottom="11" /> </BackgroundInsets> <TileSize> <AbsValue val="32" /> </TileSize> <EdgeSize> <AbsValue val="32" /> </EdgeSize> </Backdrop> <Layers> <Layer level="OVERLAY"> <FontString name="$parentText" inherits="GameFontNormalSmall" setAllPoints="true" text="CombatTracker" /> </Layer> </Layers> <Scripts> <OnLoad>combatTracker_Onload(self) self:RegisterForDrag("LeftButton");</OnLoad> <OnEvent> combatTracker_OnEvent(self,event,...) </OnEvent> <OnClick> combatTracker_ReportDPS() </OnClick> <OnDragStart>self:StartMoving() self:StartMoving();</OnDragStart> <OnDragStop>self:StropMovingOrSizing() self:StopMovingOrSizing();</OnDragStop> </Scripts> </Frame> </Ui>
Anyone know whats going on ??
-
Posted by numerical25 on Fri, 04 Sep 2009 19:41:13
why does my post show the html too ??
-
Posted by jnwhiteh on Sat, 05 Sep 2009 09:06:01
Because you didn't wrap your code using the code button in the editor toolbar. It's an issue I'd like to get around to fixing, but have not yet.
-
Posted by jnwhiteh on Sat, 05 Sep 2009 09:06:26
Why do you call self:StartMoving() twice, and the same with self:StopMovingOrSizing()?