Curl Global Community
DropdownList のボタンが欲しい - Printable Version

+- Curl Global Community (https://communities.curl.com)
+-- Forum: Discussions (https://communities.curl.com/forumdisplay.php?fid=1)
+--- Forum: General Curl questions (https://communities.curl.com/forumdisplay.php?fid=2)
+--- Thread: DropdownList のボタンが欲しい (/showthread.php?tid=348)



DropdownList のボタンが欲しい - umemura - 11-18-2011

DropdownList の右にある、下向き三角のボタンが欲しい。



RE: DropdownList のボタンが欲しい - umemura - 11-18-2011

オープンコントロールから探しました。

Code:
{def owner:StandardDropdownListUI = {StandardDropdownListUI}}
{def sdh:StandardDropdownHelper = {StandardDropdownHelper owner}}
{value sdh.dropdown-button-graphic}


見栄えだけなら↓

Code:
{CommandButton
            takes-focus? = false,
            show-focus? = false,
            active-traversal-container = null,
            control-appearance-changeable? = true,
            label =
                {TriangleControlPart.from-dimension
                    TriangleDirection.down,
                    5, 7, offset = 2
                },
            height = {add-stretch before? = true, after? = true},
            {on Action do
                {self.textfield.populate-from-strings
                    self.provider.list-item-string}
            }
        }



RE: DropdownList のボタンが欲しい - c-s - 11-21-2011

SkinnableDropdownListUIを使っているなら、以下の様に取れます。

{ui.get-tagged-content "drop-button"}