INTERACT FORUM

Windows => Plug-in Development => Topic started by: RhinoBanga on May 24, 2002, 10:27:15 pm

Title: Request: Object that reports current fonts/colours
Post 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).
Title: RE:Request: Object that reports current fonts/colours
Post by: Nikolay on May 25, 2002, 09:42:39 am
I will see what I can do Next Page

Nikolay
Title: RE:Request: Object that reports current fonts/colours
Post by: RhinoBanga on May 25, 2002, 11:17:54 pm
Thanks Nikolay ... it's appreciated.
Title: RE:Request: Object that reports current fonts/colours
Post by: Nikolay on May 28, 2002, 02:15:52 pm
Rhino,

Take a look at new function GetSkinInfo in Media Jukebox Automation.

Nikolay
Title: RE:Request: Object that reports current fonts/colours
Post by: RhinoBanga on May 29, 2002, 10:16:40 am
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 Next Page
Title: RE:Request: Object that reports current fonts/colours
Post by: Nikolay on May 29, 2002, 02:36:49 pm
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
Title: RE:Request: Object that reports current fonts/colours
Post by: RhinoBanga on May 29, 2002, 10:20:20 pm
Excellent Nikolay ... just the sort of info I need.


Thanks.