Thread Rating:
  • 427 Vote(s) - 2.82 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DropdownList でラベルが選択できない
02-04-2013, 03:49 PM,
#2
RE: DropdownList でラベルが選択できない
ボタンを押せてしまうのであればボタンだけを押せなくさせればよいかと思います。

こんな感じでどうでしょうか? 上下キーでアイテムを選択させたければKeyPressイベントを外せばよいです。

Code:
{curl 8.0 applet}
{def cbo = {ComboBox
              enabled? = true,
              editable? = false,
              disabled-text-sunken?=false,
              disabled-color="black",
              value = "aaa",
              "bbb",
              "ccc",
              {on e:KeyPress do
                  {if e.value == KeyPressValue.up or e.value == KeyPressValue.down then
                      {e.consume}
                  }
              }
           }
}
{value
  def df-ui = cbo.ui-object asa SkinnableComboBoxUI
  def frame = df-ui.child.graphic asa Frame
  def grid = frame.child.graphic asa Grid
  def txt =  grid.child-array[0].graphic asa TextField
  def btn =  grid.child-array[1].graphic
  set txt.enabled? = true
  set btn.enabled? = false
  cbo
}




Messages In This Thread
RE: DropdownList でラベルが選択できない - by usami - 02-04-2013, 03:49 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  DropdownList のリスト表示のショートカット umemura 1 2,884 02-24-2014, 05:34 PM
Last Post: umemura
  DropdownList へのListValueItem の設定方法は? umemura 1 2,836 02-02-2014, 07:13 PM
Last Post: dyoshida
  選択後の DropdownList のラベルをカスタマイズしたい umemura 0 2,872 04-02-2013, 05:42 PM
Last Post: umemura
  How to measure ListValueItem.label width in Dropdownlist kingcesc 1 2,941 11-15-2012, 12:07 PM
Last Post: kingcesc
  DropdownList のリストを表示 umemura 4 4,595 11-21-2011, 10:12 AM
Last Post: c-s
  DropdownList のボタンが欲しい umemura 2 3,909 11-21-2011, 10:08 AM
Last Post: c-s
  Dropdownlist: height changes when selected? swan 2 4,336 07-27-2011, 01:32 PM
Last Post: swan
Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('672')