Right Click set value without closing the dropdown #8


  • New
  • Enhancment
Open
Assigned to yssaril
  • Forge_User_33287735 created this issue Oct 9, 2010

    What is the enhancement in mind? How should it look and feel?
    I find myself for example testing out different fonts and then constantly scrolling down the dropdown over and over again to try the next font. It would be nice if when right clicked instead of left click the dropdown would stay open so it is easy to try out the next one without opening it up again and scrolling down and finding the last used item.

    Please provide any additional information below.

    local function ContentOnClick(this, button)
            local self = this.obj
    	self:Fire("OnValueChanged", this.text:GetText())
    	if self.dropdown and button == "LeftButton" then
    		self.dropdown = AGSMW:ReturnDropDownFrame(self.dropdown)
    	end
    end
    
    local function GetContentLine()
    	local frame
    	if next(contentFrameCache) then
    		frame = table.remove(contentFrameCache)
    	else
    		frame = CreateFrame("Button", nil, UIParent)
    			--frame:SetWidth(200)
    			frame:RegisterForClicks("LeftButtonUp", "RightButtonUp")
                            ...
    

    and removed this completely. Think it still works since it is released when it loses focus anyway.

    local function ClearFocus(self)
    	if self.dropdown then
    		self.dropdown = AGSMW:ReturnDropDownFrame(self.dropdown)
    	end
    end
    
  • Forge_User_33287735 added the tags New Enhancment Oct 9, 2010
  • Forge_User_33287735 edited description Oct 10, 2010
  • Forge_User_33287735 edited description Oct 11, 2010

To post a comment, please login or register a new account.