NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 28 29 30 31 32 … 93 Next »
JavaWiz Skeleton Plugin

 
  • 0 Vote(s) - 0 Average
JavaWiz Skeleton Plugin
herrmannj
Offline

Member

Posts: 150
Threads: 22
Joined: May 2005
#1
2008-10-05, 08:27 AM
Hi,

in the skeleton plugin the initialization of the UI Controls is in the activate methode - but I rather would expect it in the ctor.

Is there any reason/some kind of best practice ?

thnx
Joerg
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 107,181
Threads: 773
Joined: Nov 2003
#2
2008-10-05, 04:04 PM
I usually recommend people do it in the first activate, so that plugins dont end up using resources unless they're really used - often people have them installed but dont use them. It also slows down the application startup if plugins try to initialise themselves in the constructor.
herrmannj
Offline

Member

Posts: 150
Threads: 22
Joined: May 2005
#3
2008-10-06, 05:28 PM
thnx - that makes sense, I guess its something like that.

Now I got some strange behavior in the skeleton. If I comment out the listbox creation the plugin stops working which means it will be shown but any button press and the plugin went back to the main menu (after showing the desired action flashing) instantly:

to clarify:

OK:
lstMyList = new WizUiList(skinHelper, "ListBox", this, null);
// lstMyList.AllowMultipleSelections = false;
// lstMyList.AutoPosition = true;
// ctlMgr.AddControl(lstMyList);

not working
// lstMyList = new WizUiList(skinHelper, "ListBox", this, null);
// lstMyList.AllowMultipleSelections = false;
// lstMyList.AutoPosition = true;
// ctlMgr.AddControl(lstMyList);

hmm. What do I miss ?

Joerg
herrmannj
Offline

Member

Posts: 150
Threads: 22
Joined: May 2005
#4
2008-10-06, 06:22 PM
Its nice to answer my own question: the key handler needs also be removed and everythink is fine.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 4,066 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 4,316 2020-11-14, 08:01 PM
Last Post: sub
  VIdeo playback from plugin mvallevand 5 4,091 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 3,336 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 3,167 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 7,002 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 2,297 2013-03-12, 06:48 AM
Last Post: psycik
  Plugin problems with started from the command line mvallevand 11 5,921 2012-08-12, 07:56 PM
Last Post: sub
  Get NextPVR data directory from outside a plugin McBainUK 3 2,604 2012-02-11, 05:42 PM
Last Post: mvallevand
  Weather Plugin imilne 0 1,761 2012-01-15, 08:33 PM
Last Post: imilne

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode