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


Write your reply...

Similar threads

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
430
How do you add a new selection to the TV Guide Rows option in the BasicHome Editor in DWHD? Id like to add an option for 8 Rows. Which xmls should I be looking at to change.? Thanks!
How do you add a new selection to the TV Guide Rows option in the BasicHome Editor in DWHD? Id like to add an option for 8 Rows...
How do you add a new selection to the TV Guide Rows option in the BasicHome Editor in DWHD? Id like to add an option for 8 Rows...
Replies
0
Views
222
MP1 MP2 Auto Rating DE
Sorry i dont use Mov Pic
Sorry i dont use Mov Pic
Hi, I have done this previously but have just done a fresh install of MP1 (1.34 X64) and for the life of me can't see how to do it...
Replies
3
Views
1K
I think therein lies my problem. I am on 1.6.2.0. So thanks both for your help, I will pause this thread for now and come back to it while I work out what to do next. The problem is we have a family member who relies on MiniDisplay and I don't know if upgrading the set up is going to spoil compatibility with that plug in. The set up...
I think therein lies my problem. I am on 1.6.2.0. So thanks both for your help, I will pause this thread for now and come back to...
Good afternoon, Does anybody know of an expression or property I can use within a conditional visibility statement, that detects...
Replies
28
Views
1K
This solves the problem. Thank you. I completely overlooked that.
This solves the problem. Thank you. I completely overlooked that.
I'm trying to register Mediaportal as new application in trakt. When I'm ordering a new user code the window shown only "USERCODE"...
Replies
2
Views
581
Top Bottom