Thread Rating:
  • 329 Vote(s) - 2.88 Average
  • 1
  • 2
  • 3
  • 4
  • 5
常に最前面に表示
10-27-2011, 12:58 PM,
#1
常に最前面に表示
独立型アプレットにおいて、一般的なアプリによくある「常に最前面に表示」をしたいのですが、どうすれば可能でしょうか?
10-27-2011, 01:31 PM,
#2
RE: 常に最前面に表示
復活の帝王さま

最前面にしたい Viewで ViewDeactivateEvent イベントをハンドルし
{View.set-topmost true} にすると、常に最前面になるかとおもいます。

Code:
{let v:View = {View
                  || Replace {Frame} with your code.
                  {Frame width = 8cm, height = 8cm},
                  visibility = "normal",
                  {on WindowClose do
                      {exit}
                  },
                  {on e:ViewDeactivateEvent do
                      {v.set-topmost true}
                  }
              }
}
{v.raise}

こんな感じです。
10-27-2011, 05:44 PM,
#3
RE: 常に最前面に表示
ViewDeactivateEvent などで制御する必要はありません。

Code:
{do
    def v = {View
                || Replace {Frame} with your code.
                {Frame width = 8cm, height = 8cm},
                visibility = "normal",
                {on e:WindowClose do
                    {exit}
                }
            }
    {v.set-topmost true}
}


11-01-2011, 05:55 PM,
#4
RE: 常に最前面に表示
onyo様、fukuta様

ありがとうございました。やってみます。


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('327')