Thread Rating:
  • 462 Vote(s) - 2.88 Average
  • 1
  • 2
  • 3
  • 4
  • 5
非活性ボタンにbind-screen-command を指定すると・・・?
11-02-2011, 02:51 PM,
#4
RE: 非活性ボタンにbind-screen-command を指定すると・・・?
なるほど、ボタン側でそのコマンドを「呼ぶかどうか」ではなく、そのコマンドが「有効かどうか」で切り替えるということでしょうか。

{self.request-update-commands} を忘れないように気をつけないとですね。


Code:
||| Ex1LoginScreen の "login" スクリーンコマンドの定義
{define-screen-command
    login of screen:Ex1LoginScreen {enabled? screen.login-enabled?}
do


Code:
||ユーザー名の入力にあわせて、ログインボタンの活性を切り替える
    {self.userid-tf.add-event-handler
        {on ValueChanged at tf:TextField do
            {if tf.value.size > 0 then
                set self.login-enabled? = true
             else
                set self.login-enabled? = false
            }
            {self.request-update-commands}
        }
    }


Messages In This Thread
RE: 非活性ボタンにbind-screen-command を指定すると・・・? - by umemura - 11-02-2011, 02:51 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  Curl RTE Command line smtit 1 2,917 04-19-2016, 09:35 AM
Last Post: dice256
  Using cURL command, how do we fetch stock data which comes back *WITHOUT comm Scotland Warrior 1 3,473 01-16-2015, 10:09 AM
Last Post: dyoshida
  curl command to set file property nazia 1 4,700 04-22-2013, 03:47 PM
Last Post: heavybugtracker
  powershell is not parsing the curl command line promperly ericwood 1 5,006 04-17-2013, 12:00 PM
Last Post: heavybugtracker
  RecordForm do-command "move-to" RobertShiplett 1 3,693 05-14-2012, 08:47 PM
Last Post: RobertShiplett
  Command のnameについて snishimura 1 3,164 08-01-2011, 10:21 PM
Last Post: umemura
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('324')