home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Development Question: No Resources ??
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="steve42" data-source="post: 719986" data-attributes="member: 84399"><p>IPSWindow is derived from GUIWindow. An instance of this class handles a gui window as usual. In its Init method it loads a arbitrary skin file (the skin parameter) and uses id as its window id.</p><p></p><p>The code is called in a OnClick-Handler i.e. when the user clicks a button.</p><p></p><p>The CTOR looks like this:</p><p>[CODE]</p><p> public IPSWindow(int id, string skin)</p><p> {</p><p> this.winId = id;</p><p> this.skin = skin;</p><p> }</p><p>[/CODE]</p><p></p><p>The Init method like this:</p><p>[CODE]</p><p> public override bool Init()</p><p> {</p><p> bool r = Load(GUIGraphicsContext.Skin + "\\" + this.skin);</p><p> Log.Debug("IPSWindow::Init loading skin {0}, success {1}", this.skin, r );</p><p> return r;</p><p> }</p><p>[/CODE]</p><p></p><p>steve</p></blockquote><p></p>
[QUOTE="steve42, post: 719986, member: 84399"] IPSWindow is derived from GUIWindow. An instance of this class handles a gui window as usual. In its Init method it loads a arbitrary skin file (the skin parameter) and uses id as its window id. The code is called in a OnClick-Handler i.e. when the user clicks a button. The CTOR looks like this: [CODE] public IPSWindow(int id, string skin) { this.winId = id; this.skin = skin; } [/CODE] The Init method like this: [CODE] public override bool Init() { bool r = Load(GUIGraphicsContext.Skin + "\\" + this.skin); Log.Debug("IPSWindow::Init loading skin {0}, success {1}", this.skin, r ); return r; } [/CODE] steve [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Development Question: No Resources ??
Contact us
RSS
Top
Bottom