Thread Rating:
  • 301 Vote(s) - 2.71 Average
  • 1
  • 2
  • 3
  • 4
  • 5
F2キーが効かない?
03-27-2014, 02:57 PM,
#4
RE: F2キーが効かない?
素早く複数のセルへ連続入力すると、エラーになってしまったので、少し修正。
Code:
{method public open {check-f2-event ev:KeyPress}:bool
    {type-switch self.grid-focus
    case str-cell:StandardStringCell  do
        def editor = str-cell.current-editor
        ||F2キーが押されても、セルに値がなければ無視
        {if-non-null editor then
            {type-switch  editor.ui-object
             case tf-ui:SkinnableTextFieldUI  do
                let constant rng:StringDataModelWritableRange =
                    (tf-ui.control asa TextField).selected-range
                {switch ev.value
                 case KeyPressValue.f2 do
                    {if 0 == rng.data-model.size then
                        {return true}
                    }
                }
            }
        }
    }
    {return false}
  }


Messages In This Thread
F2キーが効かない? - by umemura - 03-20-2014, 04:01 PM
RE: F2キーが効かない? - by dyoshida - 03-23-2014, 07:37 PM
RE: F2キーが効かない? - by umemura - 03-24-2014, 09:58 AM
RE: F2キーが効かない? - by umemura - 03-27-2014, 02:57 PM
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('1057')