INTERACT FORUM
Windows => Plug-in Development => Topic started by: RhinoBanga on May 24, 2002, 10:27:15 pm
-
Hi guys,
I've had a couple of request to get AV to match the current look'n'feel of MJ ... when you get 5 mins can you implement an object that reports the current colours and fonts for the treeview, etc.
I tried doing it programmatically but for some reason FindWindowEx could not find your treeview even thought Spy|PLS||PLS| showed it quite happily. I'm presuming ATL is "hiding" it since I can see it's wrapped around an ATL control. This also scuppers my plans to try and put my treeview into MJ's one and bring up the properties window for an "album" (I was planning to find the entry in your treeview and send the keys required to bring up the properties screen).
-
I will see what I can do
Nikolay
-
Thanks Nikolay ... it's appreciated.
-
Rhino,
Take a look at new function GetSkinInfo in Media Jukebox Automation.
Nikolay
-
Nikolay,
Do you have a list of the items I can interrogate?
Also how did you envisage I get font information out? You going to return a font handle?
Also are the colours OLE one's or just RGB?
Looks promising
-
You can see the name of the objects right in the main.xml file for mega-me skins.
Will translate to strItem "List" (case independant), strAttribute "TextColor" or "BackColor" or "SelectedTextColor" etc.
If you want to get TextColor for the HeaderBar, do GetSkinInfo("List::HeaderBar", "TextColor")
All colors are return as RGB.
Fonts are return as HFONT.
Here is the example of how to get CaptionArea font:
GetSkinInfo("Frame::CaptionArea", "Font")
Hope that helps.
Best Regards,
Nikolay
-
Excellent Nikolay ... just the sort of info I need.
Thanks.