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
744
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
1K
TV Server plugins are listed on this page, and "EPG Cleaner" can be downloaded from this page. Note: I don't know what bitness the plugin has. It might be 32-bit, or it might be "any cpu". The plugin is not listed by the "MP Extensions" tool, so I don't know whether it has been tested with the most-recent MP releases. -- from...
TV Server plugins are listed on this page, and "EPG Cleaner" can be downloaded from this page. Note: I don't know what bitness the...
I'm looking for a better recording scheduler. Many recording titles (at least in the UK) change between episodes, sometimes being...
Replies
4
Views
621
@CyberSimian Sorry, I missed your last post. I ended up doing a clean install on the client and all is well now. It still doesn't let me go back in time when I change channels but it does continue operating from that point on. I'm ok with that. Thanks for your help! EDIT: I now downgraded the server (as I did with the client above)...
@CyberSimian Sorry, I missed your last post. I ended up doing a clean install on the client and all is well now. It still doesn't...
When I first start watching a TV program the timeshift functions works perfectly. I can shift back and forth in time and it works...
Replies
11
Views
2K
So, you're power cycling the TV, but not putting the PC to sleep ? In General => Startup/Resume settings, try checking "Ignore Windows resolution/size changes" In Codecs and Render, try selecting the specific audio device rather than "Default DirectSound device" Just ideas, no guarantee this will do anything. If this doesn't work, I...
So, you're power cycling the TV, but not putting the PC to sleep ? In General => Startup/Resume settings, try checking "Ignore...
I'm running MP1 as a client only on this: https://www.amazon.com/dp/B0DZX5DWS5?ref_=pe_123509780_1038749300_t_fed_asin_title&th=1...
Replies
4
Views
959
Top Bottom