Info, pic, video or data onfocus?
jane
17 Mar 2010
portal.gzgq.com(yeah i know the video is a tough nut) i was looking at the code and i saw that the guiwindowhome does something like this to change the background image, but i was wondering two things, is this possible in any screen (like videos, music, etc) or just in myhome? is there a way to play a video in the background, based on what you selected, in any screen too? (that would be cool for animated backgrounds, previews, etc)
thanks, and happy holidays!
btw: thanks for answering jmarshall happy holidays!
1. add a couple of info labels to the guiinfomanager. something like medialist.currentthumb perhaps.
2. add a base class for all media windows (programs, scripts, pictures, music, video) and have a function getselecteditem() which returns a cfileitem pointer to the current item, and a ismediawindow() function to the guiwindow base class.
3. in the guiinfomanager, check whether you have a media window, then cast the window to a media window, and call getselecteditem(). then just extract the thumb info which is what you return.
that way you can have it on all windows no problem at all.
as i said, i'm planning on adding this at some stage in the near future, but if you would like to do it, then go for it.
cheers,
jonathan
#If you have any other info about this subject , Please add it free.# |