Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
Config question
This thread has 6 replies. Displaying all posts.
Post 1 made on Wednesday August 25, 2010 at 13:12
miwi
Long Time Member
Joined:
Posts:
December 2004
34
Hello experts,

in my file I use a sliding panel with a button that has white Text in unpressed stage. When I execute the action (slide the panel up) linked to that button afterwards the color of the text change from white into black and stays black even after the related action has finished.

Below you see the related entry in the config file. But I do not find the point where it tells to change color after completing the action.

Any ideas?

Thanks,

miwi

  
             
Miwi
Post 2 made on Wednesday August 25, 2010 at 14:04
MCFH
Long Time Member
Joined:
Posts:
December 2009
35
I imagine you are making the mistake I did:
With the buttons there is a setColor function and a equivalent .color property. If you set the property in the button handler it reverts at the end of the event. If you use the function it doesn't.
Post 3 made on Wednesday August 25, 2010 at 16:31
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,994
All discussed in this thread here where MCFH was first poster of the question.

[Link: remotecentral.com]
Lyndel McGee
Philips Pronto Addict/Beta Tester
OP | Post 4 made on Thursday August 26, 2010 at 05:25
miwi
Long Time Member
Joined:
Posts:
December 2004
34
Hello Lyndel,

in my case it is not a backgound color, it is text color that changes.

So I looked for textcolor related to that button in the ConfigEdit.xml both textcolor and backgroundcolor / backgroundcolor pressed is at 255 255 255, so should stay white, but doesn´t.

Also I am not able to trace it in the related script.js file.

Any clue where exact I have to search for this.


Thanks in advance for the great support...

miwi
Miwi
Post 5 made on Friday August 27, 2010 at 15:54
frankyaye
Lurking Member
Joined:
Posts:
August 2010
1
Hi,

I changed the sliding Panels script
from:
function createWidget(aWidget, addReset){
newWidget = GUI.addButton();
newWidget.parentWidget = aWidget;
newWidget.slider = slider;
newWidget.visible = true;
newWidget.bgColor = aWidget.bgColor;
newWidget.bold = aWidget.bold;
newWidget.color = aWidget.color
newWidget.font = aWidget.font;
to:
function createWidget(aWidget, addReset){
newWidget = GUI.addButton();
newWidget.parentWidget = aWidget;
newWidget.slider = slider;
newWidget.visible = true;
newWidget.bgColor = aWidget.bgColor;
newWidget.bold = aWidget.bold;
newWidget.color = aWidget.color
//****************************************************************
newWidget.setColor( aWidget.getColor(0), 0 );
newWidget.setColor( aWidget.getColor(1), 1 );
//****************************************************************
newWidget.font = aWidget.font;


franky
Post 6 made on Friday August 27, 2010 at 20:52
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,994
On August 26, 2010 at 05:25, miwi said...
Hello Lyndel,

in my case it is not a backgound color, it is text color that changes.

So I looked for textcolor related to that button in the ConfigEdit.xml both textcolor and backgroundcolor / backgroundcolor pressed is at 255 255 255, so should stay white, but doesn´t.

Also I am not able to trace it in the related script.js file.

Any clue where exact I have to search for this.

Thanks in advance for the great support...

miwi

I believe the same issue will apply button widgets for the setColor() method vs color property.
Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 7 made on Friday August 27, 2010 at 20:55
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,994
On August 27, 2010 at 15:54, frankyaye said...
Hi,

I changed the sliding Panels script
from:
function createWidget(aWidget, addReset){
newWidget = GUI.addButton();
newWidget.parentWidget = aWidget;
newWidget.slider = slider;
newWidget.visible = true;
newWidget.bgColor = aWidget.bgColor;
newWidget.bold = aWidget.bold;
newWidget.color = aWidget.color
newWidget.font = aWidget.font;
to:
function createWidget(aWidget, addReset){
newWidget = GUI.addButton();
newWidget.parentWidget = aWidget;
newWidget.slider = slider;
newWidget.visible = true;
newWidget.bgColor = aWidget.bgColor;
newWidget.bold = aWidget.bold;
newWidget.color = aWidget.color
//****************************************************************
newWidget.setColor( aWidget.getColor(0), 0 );
newWidget.setColor( aWidget.getColor(1), 1 );
//****************************************************************
newWidget.font = aWidget.font;

franky

Miwi,

This change will indeed correct the issue.

With regard to getting a the script, make sure that you have enabled 'Advanced' mode under the General Options of PEPv2. Then you can see the Activity, Page, and Button Property tab that contains script.
Lyndel McGee
Philips Pronto Addict/Beta Tester


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse