Thread Rating:
  • 341 Vote(s) - 2.78 Average
  • 1
  • 2
  • 3
  • 4
  • 5
View.get-default-owner が取得できない?
05-22-2014, 08:57 PM,
#1
View.get-default-owner が取得できない?
Dialog を継承したクラスで、showメソッドをオーバーライドしたいのですが、
引数 owner? の初期値として、 {View.get-default-owner} を指定すると、
「アクセスコードが同じパッケージないため・・・」と、エラーになってしまいます。

{View.get-default-owner} を取得する方法はないのでしょうか。

Code:
{define-class public CustomDialog {inherits Dialog}
  {constructor public {default ...}
    {construct-super {splice ...}}
  }
  {method public {show
                     title:String = {host-localize "Pop-up Window"},
                     modal?:bool = true,
                     center?:bool = true,
                     owner:#View = {View.get-default-owner},
                     style:DialogStyle = DialogStyle.standard,
                     large-icon:#Pixmap = null,
                     small-icon:#Pixmap = null
                 }:void
    {super.show
        title = title,
        modal? = modal?,
        center? = center?,
        owner = owner,
        style = style,
        large-icon = large-icon,
        small-icon = small-icon
    }
  }
}
12-02-2014, 02:32 PM,
#2
RE: View.get-default-owner が取得できない?
'View.get-default-owner' is not a public API for internal use only, and cannot be accessed from developers's code directly.


Possibly Related Threads...
Thread Author Replies Views Last Post
  choose-file の default-location が効かない umemura 2 3,391 04-08-2014, 07:48 PM
Last Post: umemura
  PDF export from popup View RobertShiplett 4 5,990 05-31-2012, 11:01 PM
Last Post: RobertShiplett
  How to make a drop shadow for View alchimiste 2 4,423 08-16-2011, 02:47 PM
Last Post: alchimiste
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('1087')