Thread Rating:
  • 481 Vote(s) - 2.89 Average
  • 1
  • 2
  • 3
  • 4
  • 5
popup-messageのキャンセルボタン
08-26-2011, 01:19 PM,
#2
RE: popup-messageのキャンセルボタン
ayappe 様
めちゃめちゃ汚いソースですが、実現だけなら下記できました。
もっといい方法があるかもしれません。

Code:
{popup-message "ほげほげほげ~",cancel? = true,
    {on DialogShow at dl:Dialog do
||--        {dl.become-active}
        {for c:Control in dl.controls do
            {type-switch c
             case cb:CommandButton do
                {if {cb.label.get-text} == "キャンセル" then
                    {after 0s do
                        {cb.request-key-focus}
                    }
                }
            }
        }
    }
}


Messages In This Thread
RE: popup-messageのキャンセルボタン - by onyo - 08-26-2011, 01:19 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  popup-question で「いいえ」ボタンに初期フォーカスを当てるには? umemura 1 3,417 01-31-2014, 04:49 PM
Last Post: umemura
  TextField popup menu RobertShiplett 1 3,538 08-31-2012, 11:53 AM
Last Post: tdeng
  PDF export from popup View RobertShiplett 4 5,990 05-31-2012, 11:01 PM
Last Post: RobertShiplett
Forum Jump:


Users browsing this thread:
2 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('240')