Change textureFocus at runtime (1 Viewer)

GannTrader

Portal Member
January 31, 2007
29
0
Home Country
Sweden Sweden
Hi

Im building a plugin and want to change the textureFocus property at runtime.
How is this done?

/GannTrader
 

GannTrader

Portal Member
January 31, 2007
29
0
Home Country
Sweden Sweden
Hi

Its the XML skin element skincontrol.
I have a button that i want to change the textureFocus element for.

/GannTrader
 

GannTrader

Portal Member
January 31, 2007
29
0
Home Country
Sweden Sweden
Hi

With the following code i can get the textureFocus property
string filename = ((GUIButtonControl)GetControl(ID)).TexutureFocusName;

The problem is that this property is READ ONLY.
How do i set the textureFocus for a buttoncontrol?

/GannTrader
 

moiristo

Portal Pro
November 17, 2006
342
27
Enschede
Home Country
Netherlands Netherlands
I guess it's not possible to do that, looking at the GUIButtonControl class; maybe that property can't be changed after instantiation. Maybe it's possible to extend the class to try if it works?
 

overture

Portal Pro
January 3, 2006
79
0
Bangor
Home Country
Hi

With the following code i can get the textureFocus property
string filename = ((GUIButtonControl)GetControl(ID)).TexutureFocusName;

The problem is that this property is READ ONLY.
How do i set the textureFocus for a buttoncontrol?

/GannTrader

I think you can only set it through the XML file then the button is rendered on the start-up of mediaportal. So I think this would be pretty difficult to do.
 

GannTrader

Portal Member
January 31, 2007
29
0
Home Country
Sweden Sweden
Hi

If changing textureFocus is not an option heres what i need to do.

I have an picture and when clicked on i want it to change to another picture and when clicked on one more time i want to change to a 3:rd picture and so on.
To be able to use keybord the picture must be able to have focus as well.

Can this be done?
If not can it be done by using DirectX and if yes how?
Will it be possible to change textureFocus in the future?
Will this maybe be possible i a near future?

/GannTrader
 

GannTrader

Portal Member
January 31, 2007
29
0
Home Country
Sweden Sweden
Hi

I have solved the problem myself.

To be able to switch textureFocusimage picture you can delete the button and then create it dynamicly with the image you want to use.

/GannTrader
 

Users who are viewing this thread

Similar threads

Well, currently the plugin shows the sun/moon times in user's local time. As you said, It would require to add time zone parameter to the profile. I'll try to add this option in the next version. PS: please use official thread
Well, currently the plugin shows the sun/moon times in user's local time. As you said, It would require to add time zone parameter...
I have the current (1.0.2.0 level) World Weather Lite plugins installed on x86 and x64 different MP1 copies. When Location is...
Replies
7
Views
841
MP1 MP2 Volume property DE
Thank you very much
Thank you very much
Good evening, Does anyone know if there is a Mediaportal property to report the current volume level as an integer? I have looked...
Replies
2
Views
534
Right, this solved this issue. I added my comment to this thread. Thank you very much!
Right, this solved this issue. I added my comment to this thread. Thank you very much!
Until MP 1.31 I was able to change the Videos home screen button to Moving Pictures: MediaPortal Configuration -> GUI -> Skin ->...
Replies
2
Views
614
I have recently updated from MP 1.30 to 1.31 on a Win 11 PC slightly different to your software set up but given Win 10 is still supported I doubt there are many major differences regarding the ".NET Runtime Optimization Service". On my setup I am not seeing any significant CPU usuage MP takes around 3% and the TV Service is...
I have recently updated from MP 1.30 to 1.31 on a Win 11 PC slightly different to your software set up but given Win 10 is still...
Hi, I have a single seat setup with MP 1.31 on a Win10 machine. Since the last automated Windows update the TV-Service produces a...
Replies
7
Views
1K
The OP was prior to the current release in Feburary this year of MP 1.33 which resolved a number of installation issues present in MP 1.32 particularly the x64 version and has been very thoroughly tested in a variety of scenarios, none the less it is important to bear in mind that since MP 1.33 x64 now includes an x64 version of the...
The OP was prior to the current release in Feburary this year of MP 1.33 which resolved a number of installation issues present in...
I'm surprised. MediaPortal has always been easy to move forward with. Each release building on the last, until x64 that is. Ran...
Replies
2
Views
951
Top Bottom