Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: button to switch to tabs? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
PhilC
Newbie
Newbie
Avatar

Joined: March 18 2004
Location: United Kingdom
Online Status: Offline
Posts: 39
Posted: March 21 2004 at 15:07 | IP Logged Quote PhilC

Hi,

does anyone know if it is possible to have a button on the control center that can switch to a different tab?

As an example, my main tab that has control for most of my devices is full up, so I want to add a button that simulates pressing the mouse on say the DVD control tab. The reason I want to do this is that my system is a touch screen and I want nice large buttons.

Many thanks

Phil

Back to Top View PhilC's Profile Search for other posts by PhilC
 
SteveA
Groupie
Groupie


Joined: November 28 2002
Location: United States
Online Status: Offline
Posts: 49
Posted: March 21 2004 at 15:46 | IP Logged Quote SteveA

Phil,

You can use the formula ph_setcctab from a macro to set the tab, ph_getcctab will return the value of the current tab. I set up two buttons to scroll back and forth through the tabs by reading the current value and adding to or subtracting from it. By putting a min-max value in the macro you can allow the scrolling to wrap around.

Exp:

Pressing a button named -> calls a macro which adds 1 to the value in ph_getcctab. If the value is less than or equal to a global variable I named maxtabs I pass the value to the ph_setcctab formula, if not I send a 1 which takes me back to tab 1.

Pressing a button named <- calls a macro which subtracts 1 from the value in ph_getcctab. If the value is greater than or equal to one I pass it to ph_setcctab, otherwise I send the value of my maxtabs global which jumps to the highest tab number.

Good luck..

SA

 



__________________
SteveA
Back to Top View SteveA's Profile Search for other posts by SteveA Visit SteveA's Homepage
 
PhilC
Newbie
Newbie
Avatar

Joined: March 18 2004
Location: United Kingdom
Online Status: Offline
Posts: 39
Posted: March 21 2004 at 15:59 | IP Logged Quote PhilC

Thanks Steve, I can understand your method here, will give it a go later.

Phil

Back to Top View PhilC's Profile Search for other posts by PhilC
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum