Change textureFocus at runtime (2 Viewers)

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

I have recently installed MediaPortal 1.37 (x64) and MP-TVSeries v4.5.1.697 and unfortunately the TV episode runtime duration is missing in my Titan skin. This only applies to my .TS files, my .MKV files are OK. I believe the difference is likely to be because .MKV files embed the runtime in the file unlike .TS files. I have done...
I have recently installed MediaPortal 1.37 (x64) and MP-TVSeries v4.5.1.697 and unfortunately the TV episode runtime duration is...
I have recently installed MediaPortal 1.37 (x64) and MP-TVSeries v4.5.1.697 and unfortunately the TV episode runtime duration is...
Replies
0
Views
982
MP1 MP2 Recording length DE
If you use "Manual Booking" (left side menu on the "Recording Schedule" panel), you can schedule a recording duration of up to 24 hours. However... That is using the "conventional" TV sources, i.e. a DVB-T tuner, a DVB-S tuner, or an analogue tuner. You stated in your other thread that you are using an IPTV source. Perhaps there is a...
If you use "Manual Booking" (left side menu on the "Recording Schedule" panel), you can schedule a recording duration of up to 24...
Is there a limit to recording length? My TVServer recordings all cut off at 3 hours but I can't find a setting anywhere to change...
Replies
1
Views
471
Thankyou High_Five, that worked perfectly, I now remember doing that 10 years ago, thanks for jogging my old memory. Cheers Tony
Thankyou High_Five, that worked perfectly, I now remember doing that 10 years ago, thanks for jogging my old memory. Cheers Tony
Hi everyone, I have been using it For 16 years now (from V1.1.1) and it has worked flawlessly. I only use TV Series and Moving...
Replies
2
Views
418
OK - Will care about ;)
OK - Will care about ;)
In version 1.36 (I think), technical specifications were added to the center panel of the movie info screen when 'Movie Info before...
Replies
3
Views
2K
i think info but I'm really not sure
i think info but I'm really not sure
When I import new films using Moving Pictures, it takes an incredibly long time for the information to be found and downloaded...
Replies
3
Views
1K
Top Bottom