Thread Rating:
  • 292 Vote(s) - 2.62 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ご質問
08-25-2011, 10:22 AM, (This post was last modified: 08-25-2011, 10:32 AM by Yuhki.)
#3
RE: ご質問
すこし強引ですが、以下でどうでしょうか。
不具合がでる可能性がありましたらどなたかご指摘願います。

以下で問題なければ実現できます。

Code:
{define-class public open CustomCell {inherits StandardStringCell}
  
  {constructor public {default}}

  {method public {create-editor}:TextField
    def tf = {super.create-editor}
    {tf.add-event-handler
        {on ev:KeyPress at tf:TextField do
            {if ev.value == KeyPressValue.enter then
                def kp = {KeyPress}
                set kp.value =
                    {if ev.shift? then
                        KeyPressValue.up
                     else
                        KeyPressValue.down
                    }
                {self.handle-event kp}
            }
        }
    }
    {return tf}
  }
}
Reply


Messages In This Thread
ご質問 - by sakuma - 08-24-2011, 07:32 PM
RE: ご質問 - by nmyzk - 08-25-2011, 08:53 AM
RE: ご質問 - by Yuhki - 08-25-2011, 10:22 AM
RE: ご質問 - by onyo - 08-25-2011, 02:01 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('233')