Thread Tools Display Modes
06-08-11, 04:03 AM   #1
khurzog
A Frostmaul Preserver
 
khurzog's Avatar
Join Date: Dec 2007
Posts: 266
losing my menus after 1 sec

ok here's a puzzle for everyone. i'm not going to list every addon i run, because its 150+ but i keep having a problem with drop down menus (the right click type) when i first log in it's fine, and reloading UI fixes it every time, but at some point it always breaks. what happens is that any menu gets canceled out (as if escape were pressed) about 1 second after it opens. all drop downs are affected by this, not any particular addon, but it's most noticeable when i want to change my recount, mess with an option from a unit frame, or browse atlas/atlasloot. if i'm fast enough i can make it work, but it's still very frustrating. the problem with diagnosing it, is that i can't make it break on demand, it just happens, so my normal process of elimination routine is fairly ineffective. any help would be greatly appreciated =D thanks
  Reply With Quote
06-08-11, 05:28 AM   #2
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,359
Doing a "search in files" for
Code:
CloseDropDownMenus
in your addons folder might help you narrow down the candidates for misbehaving addons.
  Reply With Quote
06-08-11, 05:56 AM   #3
khurzog
A Frostmaul Preserver
 
khurzog's Avatar
Join Date: Dec 2007
Posts: 266
2 hits

from VuhdoPanelConfig.xml (VuhDo)
Code:
<Ui xmlns="http://www.blizzard.com/wow/ui/"
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\UI.xsd">

	<Script file="VuhDoPanelConfig.lua" />

	<Frame name="VuhDoGrpOrdTemplate" movable="true" enableMouse="true" hidden="true" virtual="true">
		<Size>
			<AbsDimension x="80" y="100" />
		</Size>

		<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<BackgroundInsets>
				<AbsInset left="5" right="5" top="5" bottom="5" />
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="16" />
			</TileSize>
			<EdgeSize>
				<AbsValue val="16" />
			</EdgeSize>
		</Backdrop>
		<Frames>
			<Frame name="$parentInsTxuL" hidden="true">
				<Size>
					<AbsDimension x="5" y="80" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="-5" y="-10" />
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
						<Texture name="$parentTxu" setAllPoints="true" file="interface\buttons\bluegrad64">
							<TexCoords left="0" right="1" top="0" bottom="1" />
						</Texture>
					</Layer>
				</Layers>
			</Frame>
			<Button name="$parentChsBtn" inherits="UIPanelButtonTemplate" text="VUHDO_I18N_CHOOSE">
				<Size>
					<AbsDimension x="56" y="22" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="12" y="-46" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>VUHDO_panelSetupChooseGroupOnClick(self)</OnClick>
				</Scripts>
				<NormalTexture file="Interface\Buttons\UI-Panel-Button-Up">
					<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
				</NormalTexture>
				<PushedTexture file="Interface\Buttons\UI-Panel-Button-Down">
					<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
				</PushedTexture>
				<HighlightTexture file="Interface\Buttons\UI-Panel-Button-Highlight" alphaMode="ADD">
					<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
				</HighlightTexture>
				<ButtonText name="$parentText">
					<FontHeight>
						<AbsValue val="10" />
					</FontHeight>
				</ButtonText>
				<NormalFont inherits="SystemFont_Tiny">
					<FontHeight>
						<AbsValue val="11" />
					</FontHeight>
					<Color r="1" g="0.82" b="0" />
					<Shadow>
						<Color r="0" g="0" b="0" />
						<Offset>
							<AbsDimension x="1" y="-1" />
						</Offset>
					</Shadow>
				</NormalFont>
			</Button>
			<Frame name="$parentDrgLbl1">
				<Size>
					<AbsDimension x="80" y="20" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="0" y="-8" />
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
						<FontString name="$parentLbl" inherits="SystemFont_Tiny" text="VUHDO_I18N_DRAG">
							<Anchors>
								<Anchor point="TOPLEFT" />
								<Anchor point="BOTTOMRIGHT" />
							</Anchors>
							<FontHeight>
								<AbsValue val="11" />
							</FontHeight>
							<Color r="1" g="0.82" b="0" />
							<Shadow>
								<Color r="0" g="0" b="0" />
								<Offset>
									<AbsDimension x="1" y="-1" />
								</Offset>
							</Shadow>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
			<Frame name="$parentRmvLbl">
				<Size>
					<AbsDimension x="44" y="16" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="5" y="-78" />
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
						<FontString name="$parentLbl" inherits="SystemFont_Tiny" text="VUHDO_I18N_REMOVE" justifyH="RIGHT">
							<Anchors>
								<Anchor point="TOPLEFT" />
								<Anchor point="BOTTOMRIGHT" />
							</Anchors>
							<FontHeight>
								<AbsValue val="8" />
							</FontHeight>
							<Color r="1" g="0.82" b="0" />
							<Shadow>
								<Color r="0" g="0" b="0" />
								<Offset>
									<AbsDimension x="1" y="-1" />
								</Offset>
							</Shadow>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
			<Frame name="$parentRmvTxu">
				<Size>
					<AbsDimension x="24" y="24" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="53" y="-74" />
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
						<Texture name="$parentTxu" setAllPoints="true" file="interface\buttons\ui-minusbutton-up">
							<TexCoords left="0" right="1" top="0" bottom="1" />
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnMouseDown>VUHDO_panelSetupRemoveGroupOnClick(self)</OnMouseDown>
				</Scripts>
			</Frame>
			<Frame name="$parentDrgLbl2">
				<Size>
					<AbsDimension x="80" y="20" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="0" y="-22" />
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
						<FontString name="$parentLbl" inherits="SystemFont_Tiny" text="VUHDO_I18N_ME">
							<Anchors>
								<Anchor point="TOPLEFT" />
								<Anchor point="BOTTOMRIGHT" />
							</Anchors>
							<FontHeight>
								<AbsValue val="11" />
							</FontHeight>
							<Color r="1" g="0.82" b="0" />
							<Shadow>
								<Color r="0" g="0" b="0" />
								<Offset>
									<AbsDimension x="1" y="-1" />
								</Offset>
							</Shadow>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
			<Frame name="$parentDrgTxu">
				<Size>
					<AbsDimension x="70" y="40" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="5" y="-5" />
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
						<Texture name="$parentTexture" setAllPoints="true" file="interface\buttons\ui-panel-minimizebutton-highlight">
							<TexCoords left="0" right="1" top="0" bottom="1" />
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnMouseDown>VUHDO_panelSetupGroupDragOnMouseDown(self)</OnMouseDown>
					<OnMouseUp>VUHDO_panelSetupGroupDragOnMouseUp(self)</OnMouseUp>
					<OnDragStart>VUHDO_panelSetupOnDragStart(self)</OnDragStart>
					<OnDragStop>VUHDO_panelSetupOnDragStop(self)</OnDragStop>
				</Scripts>
			</Frame>
			<Frame name="$parentInsTxuR" hidden="true">
				<Size>
					<AbsDimension x="5" y="80" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="80" y="-10" />
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
						<Texture name="$parentTxu" setAllPoints="true" file="interface\buttons\bluegrad64">
							<TexCoords left="0" right="1" top="0" bottom="1" />
						</Texture>
					</Layer>
				</Layers>
			</Frame>
		</Frames>
		<Scripts>
			<OnShow>VUHDO_PanelSetupGroupOrderOnShow(self)</OnShow>
		</Scripts>
	</Frame>

	<Frame name="VuhDoGrpSelTemplate" hidden="true" virtual="true">
		<Size>
			<AbsDimension x="80" y="100" />
		</Size>
		<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<BackgroundInsets>
				<AbsInset left="5" right="5" top="5" bottom="5" />
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="16" />
			</TileSize>
			<EdgeSize>
				<AbsValue val="16" />
			</EdgeSize>
		</Backdrop>
		<Frames>

			<Frame name="$parentTypeLabel" inherits="VuhDoLabelFrameTemplate">
				<Size>
					<AbsDimension x="63" y="18" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="7" y="1" />
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
						<FontString name="$parentLabel" inherits="SystemFont_Tiny" text="VUHDO_I18N_TYPE" justifyH="LEFT">
							<Anchors>
								<Anchor point="TOPLEFT" />
								<Anchor point="BOTTOMRIGHT" />
							</Anchors>
							<FontHeight>
								<AbsValue val="8" />
							</FontHeight>
							<Color r="1" g="0.82" b="0" />
							<Shadow>
								<Color r="0" g="0" b="0" />
								<Offset>
									<AbsDimension x="1" y="-1" />
								</Offset>
							</Shadow>
						</FontString>
					</Layer>
				</Layers>
			</Frame>

			<Frame name="$parentValueLabel" inherits="VuhDoLabelFrameTemplate">
				<Size>
					<AbsDimension x="63" y="15" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="7" y="-33" />
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer>
						<FontString name="$parentLabel" inherits="SystemFont_Tiny" text="VUHDO_I18N_VALUE" justifyH="LEFT">
							<Anchors>
								<Anchor point="TOPLEFT" />
								<Anchor point="BOTTOMRIGHT" />
							</Anchors>
							<FontHeight>
								<AbsValue val="8" />
							</FontHeight>
							<Color r="1" g="0.82" b="0" />
							<Shadow>
								<Color r="0" g="0" b="0" />
								<Offset>
									<AbsDimension x="1" y="-1" />
								</Offset>
							</Shadow>
						</FontString>
					</Layer>
				</Layers>
			</Frame>


			<Frame name="$parentTyCmb" inherits="UIDropDownMenuTemplate" id="1">
				<Size>
					<AbsDimension x="160" y="32" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="-12" y="-20" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
					UIDropDownMenu_SetWidth(self, 100);
					self:SetScale(0.7);
					local cb_init_fn = function()
						local info1 = {};
						info1.text = "" .. VUHDO_I18N_CLASS;
						info1.value = 1;
						info1.owner = self;
						info1.func = function() VUHDO_groupSelectTypeOnSelectionChanged(info1) end
						UIDropDownMenu_AddButton(info1);
						local info2 = {};
						info2.text = "" .. VUHDO_I18N_GROUP;
						info2.value = 2;
						info2.owner = self;
						info2.func = function() VUHDO_groupSelectTypeOnSelectionChanged(info2) end
						UIDropDownMenu_AddButton(info2);
						local info3 = {};
						info3.text = "" .. VUHDO_I18N_SPECIAL;
						info3.value = 3;
						info3.owner = self;
						info3.func = function() VUHDO_groupSelectTypeOnSelectionChanged(info3) end
						UIDropDownMenu_AddButton(info3);
					end
					UIDropDownMenu_Initialize(self, cb_init_fn)
					</OnLoad>
					<OnHide>CloseDropDownMenus();</OnHide>
					<OnShow>VUHDO_groupSelectTypeComboOnShow(self)</OnShow>
				</Scripts>
			</Frame>


			<Button name="$parentVlCmb" inherits="UIDropDownMenuTemplate" id="1">
				<Size>
					<AbsDimension x="160" y="32" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="-12" y="-65" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						UIDropDownMenu_SetWidth(self, 100);
						self:SetScale(0.7);
					</OnLoad>
					<OnHide>CloseDropDownMenus();</OnHide>
				</Scripts>
			</Button>

			<Button name="$parentOkayButton" inherits="UIPanelButtonTemplate" text="VUHDO_I18N_OKAY">
				<Size>
					<AbsDimension x="60" y="20" />
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="10" y="-74" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>VUHDO_groupSelectOkayOnClick(self)</OnClick>
				</Scripts>
				<NormalTexture file="Interface\Buttons\UI-Panel-Button-Up">
					<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
				</NormalTexture>
				<PushedTexture file="Interface\Buttons\UI-Panel-Button-Down">
					<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
				</PushedTexture>
				<DisabledTexture file="Interface\Buttons\UI-Panel-Button-Disabled">
					<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
				</DisabledTexture>
				<HighlightTexture file="Interface\Buttons\UI-Panel-Button-Highlight" alphaMode="ADD">
					<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
				</HighlightTexture>
				<ButtonText name="$parentText">
					<FontHeight>
						<AbsValue val="10" />
					</FontHeight>
				</ButtonText>
				<NormalFont inherits="SystemFont_Tiny">
					<FontHeight>
						<AbsValue val="12" />
					</FontHeight>
					<Color r="1" g="0.82" b="0" />
					<Shadow>
						<Color r="0" g="0" b="0" />
						<Offset>
							<AbsDimension x="1" y="-1" />
						</Offset>
					</Shadow>
				</NormalFont>
				<HighlightFont inherits="SystemFont_Tiny">
					<FontHeight>
						<AbsValue val="12" />
					</FontHeight>
					<Color r="1" g="1" b="1" />
					<Shadow>
						<Color r="0" g="0" b="0" />
						<Offset>
							<AbsDimension x="1" y="-1" />
						</Offset>
					</Shadow>
				</HighlightFont>
				<DisabledFont inherits="SystemFont_Tiny">
					<FontHeight>
						<AbsValue val="12" />
					</FontHeight>
					<Color r="0.5" g="0.5" b="0.5" />
					<Shadow>
						<Color r="0" g="0" b="0" />
						<Offset>
							<AbsDimension x="1" y="-1" />
						</Offset>
					</Shadow>
				</DisabledFont>
			</Button>
		</Frames>
		<Scripts>
			<OnShow>VUHDO_PanelSetupGroupSelectOnShow(self)</OnShow>
		</Scripts>

	</Frame>

</Ui>
and from GlobalTemplates.xml (XToLevel)
Code:
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.blizzard.com/wow/ui/..\..\FrameXML\UI.xsd">

    <!-- 
 - A Color Picker implementation.
 -->
    <Frame name="XToLevel_ColorPicker" virtual="true">
        <Size>
            <AbsDimension x="14" y="14" />
        </Size>
        <Backdrop></Backdrop>
        <Layers>
            <Layer level="BORDER">
                <Texture name="$parentBackground">
                    <Anchors>
                        <Anchor point="TOPLEFT" relativeTo="$parent">
                            <Offset>
                                <AbsDimension x="1.5" y="-1.5" />
                            </Offset>
                        </Anchor>
                        <Anchor point="BOTTOMRIGHT" relativeTo="$parent">
                            <Offset>
                                <AbsDimension x="-1.5" y="1.5" />
                            </Offset>
                        </Anchor>
                    </Anchors>
                    <Color r="0.0" g="0.0" b="0.0" a="1.0" />
                </Texture>
            </Layer>
            <Layer level="BACKGROUND">
                <Texture name="$parentEdge">
                    <Anchors>
                        <Anchor point="TOPLEFT" relativeTo="$parent">
                            <Offset>
                                <AbsDimension x="0" y="0" />
                            </Offset>
                        </Anchor>
                        <Anchor point="BOTTOMRIGHT" relativeTo="$parent">
                            <Offset>
                                <AbsDimension x="0" y="0" />
                            </Offset>
                        </Anchor>
                    </Anchors>
                    <Color r="1.0" g="1.0" b="1.0" a="1.0" />
                </Texture>
            </Layer>
            <Layer level="ARTWORK">
                <Texture name="$parentColor">
                    <Anchors>
                        <Anchor point="TOPLEFT" relativeTo="$parent">
                            <Offset>
                                <AbsDimension x="2.0" y="-2.0" />
                            </Offset>
                        </Anchor>
                        <Anchor point="BOTTOMRIGHT" relativeTo="$parent">
                            <Offset>
                                <AbsDimension x="-2.0" y="2.0" />
                            </Offset>
                        </Anchor>
                    </Anchors>
                    <Color r="1.0" g="0.0" b="0.0" a="1.0" />
                </Texture>
            </Layer>
            <Layer level="ARTWORK">
                <FontString name="$parentText" font="Fonts\FRIZQT__.TTF"
                    text="Color Picker">
                    <Anchors>
                        <Anchor point="LEFT" relativePoint="RIGHT">
                            <Offset>
                                <AbsDimension x="3" y="0" />
                            </Offset>
                        </Anchor>
                    </Anchors>
                    <FontHeight>
                        <AbsValue val="10" />
                    </FontHeight>
                    <Color r="1" g="0.8196079" b="0" />
                    <Shadow>
                        <Color r="0" g="0" b="0" />
                        <Offset>
                            <AbsDimension x="1" y="-1" />
                        </Offset>
                    </Shadow>
                </FontString>
            </Layer>
        </Layers>
        <Scripts>
            <OnEnter>
                self.mouseOver = true;
                _G[self:GetName().."Edge"]:SetTexture(0.85, 0.75, 0.0, 1.0);
            </OnEnter>
            <OnLeave>
                self.mouseOver = nil;
                _G[self:GetName().."Edge"]:SetTexture(1.0, 1.0, 1.0, 1.0);
            </OnLeave>
            <OnMouseUp>
                if self.mouseOver then
                    local refColor = _G[self:GetName() .. "Color"];
                    local acColor = self.currentColor or {1, 1, 1, 1};
    
                    local callback = function(restore)
                        if restore then
                            acColor[1], acColor[2], acColor[3], acColor[4] = unpack(restore);
                        else
                            acColor[4], acColor[1], acColor[2], acColor[3] = OpacitySliderFrame:GetValue(),
                            ColorPickerFrame:GetColorRGB();
                            if not ColorPickerFrame.hasOpacity then -- If no alpha, remove the 0 returned by the opacity slider.
                                acColor[4] = nil;
                            end
                            if acColor[4] ~= nil then -- Turn alpha into opacity.
                                acColor[4] = 1.0 - acColor[4];
                            end
                        end
                        self.currentColor = acColor;
                        refColor:SetTexture(acColor[1], acColor[2], acColor[3], acColor[4]);
                        if self.colorChangeCallback then
                        self:colorChangeCallback();
                    end
                    end
        
                    ColorPickerFrame:Hide();
                    ColorPickerFrame.func, ColorPickerFrame.opacityFunc, ColorPickerFrame.cancelFunc = callback,
                    callback, callback;
                    ColorPickerFrame.previousValues = {acColor[1], acColor[2], acColor[3], acColor[4]};
        
                    if acColor[4] ~= nil then -- Turn alpah into opacity.
                        acColor[4] = 1.0 - acColor[4];
                    end
                    ColorPickerFrame.hasOpacity, ColorPickerFrame.opacity = (acColor[4] ~= nil), acColor[4];
                    ColorPickerFrame:SetColorRGB(acColor[1], acColor[2],
                    acColor[3]);
        
                    ColorPickerFrame:Show();
                end
            </OnMouseUp>
            <OnAttributeChanged>
            	if name ~= nil and name == "currentcolor" and type(value) == "table" then
           			_G[this:GetName() .. "Color"]:SetTexture(unpack(value or {1, 1, 1, nil}))
            	end
            </OnAttributeChanged>
        </Scripts>
    </Frame>

    <Button name="XToLevel_Config_DropDown" virtual="true">
        <Size>
            <AbsDimension x="150" y="32" />
        </Size>
        <Layers>
            <Layer>
                <Texture name="$parentLeft"
                    file="Interface\Glues\CharacterCreate\CharacterCreate-LabelFrame">
                    <Size>
                        <AbsDimension x="25" y="64" />
                    </Size>
                    <Anchors>
                        <Anchor point="TOPLEFT">
                            <Offset>
                                <AbsDimension x="0" y="17" />
                            </Offset>
                        </Anchor>
                    </Anchors>
                    <TexCoords left="0" right="0.1953125" top="0"
                        bottom="1" />
                </Texture>
                <Texture name="$parentMiddle"
                    file="Interface\Glues\CharacterCreate\CharacterCreate-LabelFrame">
                    <Size>
                        <AbsDimension x="100" y="64" />
                    </Size>
                    <Anchors>
                        <Anchor point="LEFT" relativeTo="$parentLeft"
                            relativePoint="RIGHT" />
                    </Anchors>
                    <TexCoords left="0.1953125" right="0.8046875" top="0"
                        bottom="1" />
                </Texture>
                <Texture name="$parentRight"
                    file="Interface\Glues\CharacterCreate\CharacterCreate-LabelFrame">
                    <Size>
                        <AbsDimension x="25" y="64" />
                    </Size>
                    <Anchors>
                        <Anchor point="LEFT" relativeTo="$parentMiddle"
                            relativePoint="RIGHT" />
                    </Anchors>
                    <TexCoords left="0.8046875" right="1" top="0"
                        bottom="1" />
                </Texture>
                <FontString name="$parentText" font="Fonts\FRIZQT__.TTF"
                    text="English" justifyH="RIGHT">
                    <Size>
                        <AbsDimension x="125" y="10" />
                    </Size>
                    <Anchors>
                        <Anchor point="RIGHT" relativeTo="$parentRight">
                            <Offset>
                                <AbsDimension x="-43" y="2" />
                            </Offset>
                        </Anchor>
                    </Anchors>
                    <FontHeight>
                        <AbsValue val="10" />
                    </FontHeight>
                    <Color r="1" g="1" b="1" />
                    <Shadow>
                        <Color r="0" g="0" b="0" />
                        <Offset>
                            <AbsDimension x="1" y="-1" />
                        </Offset>
                    </Shadow>
                </FontString>
            </Layer>
        </Layers>
        <Frames>
            <Button name="$parentButton">
                <Size>
                    <AbsDimension x="24" y="24" />
                </Size>
                <Anchors>
                    <Anchor point="TOPRIGHT" relativeTo="$parentRight">
                        <Offset>
                            <AbsDimension x="-16" y="-18" />
                        </Offset>
                    </Anchor>
                </Anchors>
                <Scripts>
                    <OnClick>
                        ToggleDropDownMenu(nil, nil, self:GetParent());
                        PlaySound("igMainMenuOptionCheckBoxOn");
                    </OnClick>
                </Scripts>
                <NormalTexture name="$parentNormalTexture"
                    file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Up">
                    <Size>
                        <AbsDimension x="24" y="24" />
                    </Size>
                    <Anchors>
                        <Anchor point="RIGHT" />
                    </Anchors>
                </NormalTexture>
                <PushedTexture name="$parentPushedTexture"
                    file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Down">
                    <Size>
                        <AbsDimension x="24" y="24" />
                    </Size>
                    <Anchors>
                        <Anchor point="RIGHT" />
                    </Anchors>
                </PushedTexture>
                <DisabledTexture name="$parentDisabledTexture"
                    file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Disabled">
                    <Size>
                        <AbsDimension x="24" y="24" />
                    </Size>
                    <Anchors>
                        <Anchor point="RIGHT" />
                    </Anchors>
                </DisabledTexture>
                <HighlightTexture name="$parentHighlightTexture"
                    file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD">
                    <Size>
                        <AbsDimension x="24" y="24" />
                    </Size>
                    <Anchors>
                        <Anchor point="RIGHT" />
                    </Anchors>
                </HighlightTexture>
            </Button>
        </Frames>
        <Scripts>
            <OnHide>CloseDropDownMenus();</OnHide>
        </Scripts>
    </Button>
</Ui>
  Reply With Quote
06-08-11, 10:33 AM   #4
Iza
A Cyclonian
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 43
From the VuhDo side I can tell that this command will only be called after you finished setting up your groups/panels in Options=>Move. As anybody can see this only happens from onhide event and will not be called in another way. The code snippet from the other addon is also looking safe to me...
  Reply With Quote
06-08-11, 07:25 PM   #5
Saiket
A Chromatic Dragonspawn
 
Saiket's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 154
Try turning on Lua Errors and then running this script:
lua Code:
  1. /run DropDownList1:HookScript("OnHide",function()geterrorhandler()"OnHide"end)

You'll get a debug message when your dropdown gets hidden that we can use to tell you what caused it.
  Reply With Quote
06-08-11, 11:54 PM   #6
khurzog
A Frostmaul Preserver
 
khurzog's Avatar
Join Date: Dec 2007
Posts: 266
looking like gnomeworks or altoholic... maybe?

Code:
Date: 2011-06-08 22:52:36
ID: 3
Error occured in: Global
Count: 1
Message: OnHide
Debug:
   [string "DropDownList1:HookScript("OnHide",function(..."]:1:
      [string "DropDownList1:HookScript("OnHide",function(..."]:1
   [C]: ?
   [C]: Hide()
   ..\FrameXML\UIDropDownMenu.lua:55:
      ..\FrameXML\UIDropDownMenu.lua:35
   [C]: securecall()
   ..\FrameXML\UIDropDownMenu.lua:64: UIDropDownMenu_Initialize()
   GnomeWorks\RecipeGroups.lua:954: RecipeGroupDropdown_OnShow()
   GnomeWorks\MainWindow.lua:2442: func()
   GnomeWorks\MessageDispatch.lua:78: SendMessageDispatch()
   GnomeWorks\SkillList.lua:1096:
      GnomeWorks\SkillList.lua:713
   (tail call): ?
   [C]: ?
   [string "safecall Dispatcher[2]"]:9:
      [string "safecall Dispatcher[2]"]:5
   (tail call): ?
   ...\AddOns\DataStore\libs\AceTimer-3.0\AceTimer-3.0.lua:164:
      ...\AddOns\DataStore\libs\AceTimer-3.0\AceTimer-3.0.lua:138
AddOns:
  Swatter, v5.12.5165 (QuirkyKiwi)
  NPCScan, v4.1.0.2
  NPCScanOverlay, v4.1.0.3
  NPCScanOverlayBroker, v1.1.1
  ACP, v3.3.15 
  Altoholic, v4.1.001b
  AraBrokerWeaponBuffer, vr17
  Atlas, v1.19.2
  AtlasBattlegrounds, v1.19.2
  AtlasDungeonLocs, v1.19.2
  AtlasOutdoorRaids, v1.19.2
  AtlasTransportation, v1.19.2
  AtlasLoot, vv6.03.02
  AtlasLootCataclysm, vv6.03.02
  AtlasLootClassicWoW, vv6.03.02
  AtlasLootLoader, vv6.03.02
  AtlasQuest, v4.6.4
  AucAdvanced, v5.12.5165 (QuirkyKiwi)
  AucFilterBasic, v5.12.5165 (QuirkyKiwi)
  AucFilterOutlier, v5.12.5165.2531
  AucMatchUndercut, v5.12.5165.2531
  AucScanData, v5.12.5165 (QuirkyKiwi)
  AucStatHistogram, v5.12.5165 (QuirkyKiwi)
  AucStatiLevel, v5.12.5165 (QuirkyKiwi)
  AucStatPurchased, v5.12.5165 (QuirkyKiwi)
  AucStatSales, v5.12.5165.2842
  AucStatSimple, v5.12.5165 (QuirkyKiwi)
  AucStatStdDev, v5.12.5165 (QuirkyKiwi)
  AucStatWOWEcon, v5.12.5165.2530
  AucUtilAHWindowControl, v5.12.5165.3311
  AucUtilAppraiser, v5.12.5165.2530
  AucUtilAskPrice, v5.12.5165.3175
  AucUtilAutoMagic, v5.12.5165.3142
  AucUtilCompactUI, v5.12.5165.2530
  AucUtilEasyBuyout, v5.12.5165.3583
  AucUtilFixAH, v5.12.5165 (QuirkyKiwi)
  AucUtilGlypher, v5.12.5165.5061
  AucUtilGlypherPost, v5.12.5165.5069
  AucUtilItemSuggest, v5.12.5165.3108
  AucUtilPriceLevel, v5.12.5165.2545
  AucUtilScanButton, v5.12.5165.2530
  AucUtilScanFinish, v5.12.5165.2530
  AucUtilScanProgress, v5.12.5165.2530
  AucUtilScanStart, v5.12.5165.4784
  AucUtilSearchUI, v5.12.5165.3655
  AucUtilSimpleAuction, v5.12.5165.4546
  AucUtilVendMarkup, v5.12.5165.2530
  AuldLangSyne, vr277 
  AuldLangSyneBackup, vr277
  AuldLangSyneFriendList, vr277
  AuldLangSyneFu, vr277
  AuldLangSyneGuildList, vr277
  AuldLangSyneInfo, vr277
  AuldLangSyneNote, vr277
  AuldLangSynePanel, vr277
  AuldLangSyneSync, vr277
  AutoRes, v1.1
  Babylonian, v5.1.DEV.130
  BadBoy, vv6.499
  Bazooka, vv2.1.2
  BeanCounter, v5.12.5165 (QuirkyKiwi)
  Bimbo, v4.1.0.10
  BindPad, v2.4.0
  BlizzMove, vv1.2.2
  BloodShieldTracker, vr120
  BreadCrumbs, vr14
  BrokerCalendar, v1.2.5
  BrokerCashflow, v
  BrokerCPU, v40100
  BrokerDualSpec, v0.5
  BrokerDurabilityInfo, v1.8
  BrokerEquipment, v40100.16-Beta
  BrokerGroup, v
  BrokerMacaroon, v40000.1
  BrokerRaidsave, v2.1.1-beta
  BrokerRecount, v1.0
  BrokeruClock, v3.3.3
  BuffEnough, v1.2.127
  ButtonFacade, v4.1.357
  ChatAlphaBye, v1.0
  Chatter, v1.0
  Chinchilla, vv2.3.2-11-g27ef859
  Collectinator, v1.0.9-10-g636ebc5
  CombustionHelper, v2.7.15
  Configator, v5.1.DEV.282
  ConfirmLootRoll, v
  Cromulent, vv1.5.9
  Crossdresser, v4.1.0.5
  DataStore, v4.1.001
  DataStoreAchievements, v4.1.001
  DataStoreAgenda, v4.1.001
  DataStoreAuctions, v4.1.001
  DataStoreCharacters, v4.1.001
  DataStoreContainers, v4.1.001
  DataStoreCrafts, v4.1.001
  DataStoreCurrencies, v4.1.001
  DataStoreInventory, v4.1.001
  DataStoreMails, v4.1.001
  DataStorePets, v4.1.001
  DataStoreQuests, v4.1.001
  DataStoreReputations, v4.1.001
  DataStoreSpells, v4.1.001
  DataStoreStats, v4.1.001
  DataStoreTalents, v4.1.001
  DBMCore, v
  DeathNote, vv1.0d
  DebugLib, v5.1.DEV.275
  DungeonHelper, vr65
  eAlign, v
  ElkBuffBars, v2.3.0-165
  Enchantrix, v5.12.5165 (QuirkyKiwi)
  EnchantrixBarker, v5.12.5165 (QuirkyKiwi)
  EquipCompare, v2.18
  ErrorFilter, v2.1
  Examiner, v11.01.28
  famBags, v1.2.3
  Fatality, v1.2.2
  GatherHud, vv1.1.8-1-ga4d2007
  GatherMate2, v1.14-2-gb49253f
  GhostRecon, v0.10.9
  GnomeWorks, v146
  GoGoMount, v4.2.1
  GTFO, v4.5
  GuildCheck, vv2.31
  HatTrick, v4.0.0.2
  HealersHaveToDie, v1.8.4-3-g8c555a4
  HitsMode5, v5.0
  HitsMode5Options, v5.0
  HitsMode5Replay, v5.0
  HudMap, v
  HudMapCataEncounters, v
  IceHUD, vr853 (Revision: 853)
  ImprovedTotemFrame, v4.1.0.17
  InFlightLoad, v4.1.001
  Informant, v5.12.5165 (QuirkyKiwi)
  InspectEquip, v1.9.2
  junkdrop, vv0.7
  LightHeaded, v337
  LinkWrangler, v1.84
  Macaroon, v40000.2
  MailNotifier, v
  MailNotifierBroker, v
  Mapster, v1.4.1
  Masque, v4.1.357
  MikScrollingBattleText, v5.5.100
  Misspelled, v1.5.12
  MySales, v1.2.1beta
  oGlow, v2.0.1
  Omen, v3.1.2
  oRA3, v
  Panda, v4.1.0.37
  Pawn, v1.5.10
  PlateBuffs, v1.8.0 (r201)
  Postal, v3.4.9
  PowerAuras, v4.20
  PutGuildBack, v
  QuestGuru, v2.2.3.1
  QuestGuruTracker, v1.5.6.1
  QuestPointer, vv7-3-gc86945a
  QuickRoutes, v
  RaidChecklist, v4.1.2beta1
  RatingBuster, v
  RatingBusterAlwaysBuffed, v
  ReagentRestocker, v2.5.0 Beta
  Recount, v
  ReforgedTooltip, v1.0.4
  Routes, vv1.4.0
  SexyCooldown, v0.6.16
  ShadowedUnitFrames, vv3.3.5
  shortengoldloot, vr13-release
  SimpleILevel, v2.1.10
  SlideBar, v5.12.5165 (QuirkyKiwi)
  SocialState, v
  SpamageMeters, v1.6.3
  SpamThrottle, vv2.1
  Stubby, v5.12.5165 (QuirkyKiwi)
  SunnArt, v3.52
  tabDB, v
  TidyPlates, v6.2.1 Revision: 275
  TidyPlatesGraphite, v
  TidyPlatesGrey, v
  TidyPlatesNeon, v
  TidyPlatesQuatre, v
  TidyPlatesThreatPlates, v5.1.9
  TidyPlatesHub, v
  TipTac, v10.12.05
  TipTacItemRef, v10.12.06
  TipTacTalents, v10.11.23
  TomTom, vv40100-1.4.0
  VendorFilter, v0.1
  VendorReward, vv1.2
  VuhDo, v2.107
  VuhDoOptions, v2.107
  WIM, v3.5.4
  XLoot, v0.91.1
  XLootGroup, v0.61
  XLootMaster, v0.81
  XLootMonitor, v0.71
  XPBarNone, vv1.5.4
  XToLevel, v4.0.3_24
  ZMobDB, v6.6.2 beta1
  BlizRuntimeLib_enUS v4.1.0.40100 <us>
  (ck=14d8)
  Reply With Quote
06-09-11, 12:31 AM   #7
Saiket
A Chromatic Dragonspawn
 
Saiket's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 154
It looks like quickly opening and closing a tradeskill window for the first time since logging in will make GnomeWorks repeatedly hide your dropdown menu every two seconds. I'm not sure if that's the only possible cause, though.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » losing my menus after 1 sec

Thread Tools
Display Modes

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