Thread Rating:
  • 352 Vote(s) - 2.72 Average
  • 1
  • 2
  • 3
  • 4
  • 5
applet 終了中にはサブアプレットを表示できない?
02-22-2013, 04:50 PM,
#1
applet 終了中にはサブアプレットを表示できない?
register-exit-proc を利用して、アプリケーション終了時にスプラッシュスクリーンを表示しようと思ったのですが、
「Applet creation disallowed while exiting」というメッセージが表示されます。
おそらく、アプリケーション終了時にはスプラッシュスクリーンを表示することはできない、ということでしょうか。

Code:
{import * from CURL.ENGINE.BROWSER}
{do
    ||アプリケーション終了時にログアウト処理を登録する
    {register-exit-proc
        {fn =>
            def a = 0
            {try
                {SplashScreen.setup
                    title = "Existing Applet ...",
                    footer = "Test Example ..."
                }
                || indeterminateなプログレスバーを表示します。
                {SplashScreen.set-progress-bar-indeterminate}
                || 作業が終わるまで2秒必要と仮定しています。
                {sleep 2s}
                {SplashScreen.set-progress-bar  max = 10.0}
                {sleep 1s}
                || ループに入り、ループの中でスリープし、
                || なんらかの作業をしているような状態にします。
                let val:double = 0
                {for i = 0 below 50 do
                    set val = val + 0.2
                    {SplashScreen.set-progress-bar-value val}
                    {sleep 0.1s}
                }
                || 完了したので、スプラッシュスクリーンを破棄します。
                {SplashScreen.destroy}
             catch ex:Exception do
                {popup-message ex.message}
            }
        }
    }
}


02-22-2013, 05:46 PM,
#2
RE: applet 終了中にはサブアプレットを表示できない?
上記の問題に関連して、
アプリケーションが終了しようとしているかどうか、というのは、どのように判断すればよいでしょうか。

AppletData のプロパティにそれっぽいものがありますが、
get-the-applet で取得できるのはApplet なので、AppletData は取得できないという認識です。

「現在のアプレットの動作状態」を取得する方法があれば教えてください。




Possibly Related Threads...
Thread Author Replies Views Last Post
Sad How to embedded windows media player control to applet or detach applet hungncv 1 2,941 02-09-2014, 02:19 AM
Last Post: wbardwell
  Applet 終了中にはサブアプレットを表示できない? umemura 2 3,313 07-29-2013, 01:28 PM
Last Post: umemura
  forced applet resync RobertShiplett 1 2,928 07-13-2012, 12:20 PM
Last Post: wbardwell
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('853')