NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 32 33 34 35 36 … 93 Next »
Calling JW

 
  • 0 Vote(s) - 0 Average
Calling JW
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#1
2008-04-16, 07:36 AM
Hi JW,

How do I limit the number of buttons in the buttonlist that can be displayed before I scroll them?

Cheers
Let the Games begin...Round 2!
GameZone v2.9.6 - PVRx2 1.4.7 compatible!

[Image: 1299379.png]
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#2
2008-04-16, 08:13 AM
Isn't there a "rows" attribute for the button list in the skin file?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#3
2008-04-17, 04:12 AM
Feeling way outside my comfort zone here :o... I too thought it was a skin attribute however Fatman_do advises me that its a code thing not a skin thing.

I can quite happily play with the number of rows in the skin for a WizUIList but not it would seem for a WizUIButtonlist.

My current placement line looks like this:

<Placement name="ButtonList" loc="5.12, 12.0" size="20.0,5.0" offset="5.0" />

I assume if there was a row attribute it would simply look like this?

<Placement name="ButtonList" loc="5.12, 12.0" size="20.0,5.0" offset="5.0" rows="5"/>

The row attribute made zero difference...

Can someone explain what I should be doing?

Thanks

From a totally lost soul :confused:
Let the Games begin...Round 2!
GameZone v2.9.6 - PVRx2 1.4.7 compatible!

[Image: 1299379.png]
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#4
2008-04-17, 04:26 AM
idkpmiller Wrote:Hi JW,

How do I limit the number of buttons in the buttonlist that can be displayed before I scroll them?

Cheers
:eek:
I don't believe I've built any logic in for this. I've never had more than a couple buttons to display, so I've never run up against this issue.

That said, I'm thinking I may be able to leverage the WizUiList code, or maybe inherit from the WizUiList.

Are you stuck on this right now, or do you have a work around? My time for coding has been somewhat limited due to more stuff going on at work lately, but if it is causing you heartburn, I'll put it on the top of my list of things to work on.
pastro
Offline

Posting Freak

Posts: 1,885
Threads: 128
Joined: Jul 2006
#5
2008-04-17, 04:29 AM
[SIZE=2]Here is an example. The code defines the captions that get used.

I don't think the number of buttons is defined in the skin. You just define the start position, the size of a button and the offset between buttons if I remember correctly.


WizUiButtonList cmdButtonList;
[/SIZE]
string[] captions = { "Main Menu", "Captions are On", "Cskip Options", "4:3 is ON", "SmsMode is OFF", "Preview is On" };
[SIZE=2]cmdButtonList =
newWizUiButtonList(skinHelper, "ButtonList", captions);
ctlMgr.AddControl(cmdButtonList);


[/SIZE]
GBpvr PC: Intel Celeron 1.8 Ghz. 768 Mb WinXp Home Sp2
Video: Diamond 128 Mb 9550
Capture Cards: PVR-150 & PVR-150 MCE w/fm + 2x MVP
Author of: BurnDVDX2 and Skiptool
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#6
2008-04-17, 05:25 AM
pastro Wrote:[SIZE=2]Here is an example. The code defines the captions that get used.

I don't think the number of buttons is defined in the skin. You just define the start position, the size of a button and the offset between buttons if I remember correctly.


WizUiButtonList cmdButtonList;
[/SIZE]
string[] captions = { "Main Menu", "Captions are On", "Cskip Options", "4:3 is ON", "SmsMode is OFF", "Preview is On" };
[SIZE=2]cmdButtonList = newWizUiButtonList(skinHelper, "ButtonList", captions);
ctlMgr.AddControl(cmdButtonList);


[/SIZE]
Right, but I think he was hoping he could limit the number of buttons displayed, and have the list scroll, like a regular list object. The current implementation of the WizUiButtonList does not support this behavior.
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#7
2008-04-17, 05:49 AM
Thanks for the response JW.

I was indeed expecting that the buttonlist would only "grow" so long befow it would scroll like a UIList.

It will only affect GameZone2 users that have more than around 5 emulators enabled, I currently support around 18 I think (scratching head)

I suspect it will be a small number of people that will hit the issue, so its more of a when you have the time it would great if it got attention as opposed to its needed NOW....

Cheers
Let the Games begin...Round 2!
GameZone v2.9.6 - PVRx2 1.4.7 compatible!

[Image: 1299379.png]
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#8
2008-04-17, 02:41 PM
idkpmiller Wrote:Thanks for the response JW.

I was indeed expecting that the buttonlist would only "grow" so long befow it would scroll like a UIList.

It will only affect GameZone2 users that have more than around 5 emulators enabled, I currently support around 18 I think (scratching head)

I suspect it will be a small number of people that will hit the issue, so its more of a when you have the time it would great if it got attention as opposed to its needed NOW....

Cheers
I'm wondering if maybe a WizUiList could be used in the place of a WizUiButtonList? I will do a little experimenting when I get time and see what I can come up with.
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#9
2008-04-18, 09:41 AM
Thanks JW,

I will await your feedback

Cheers
Let the Games begin...Round 2!
GameZone v2.9.6 - PVRx2 1.4.7 compatible!

[Image: 1299379.png]
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#10
2008-04-18, 08:56 PM
idkpmiller Wrote:Thanks JW,

I will await your feedback

Cheers
I actually have given this some thought and I have a prototype working. There are still a few details to work out, but if I have time this weekend, I'll try to get a fully functional version going.

I may ask for you to beta-test this version before I release to everyone since I don't want to break anybody's plugin.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Calling NextPVR restart after config.xml changes steeb 33 11,688 2011-05-02, 04:24 PM
Last Post: steeb
  Calling C# programmers... zehd 5 2,658 2007-05-24, 11:51 PM
Last Post: zehd
  exception when calling scheduledRecording.getProgramme().getTitle() (manual rec) betlit 2 1,576 2005-09-23, 03:01 PM
Last Post: betlit
  Calling another menu button from another plugin..? joshley 4 2,678 2004-09-28, 05:17 PM
Last Post: joshley

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

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

Linear Mode
Threaded Mode