INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Request: Object that reports current fonts/colours  (Read 1634 times)

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
Request: Object that reports current fonts/colours
« 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).
Logged

Nikolay

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1681
  • Former CTO, JRiver, Inc.
RE:Request: Object that reports current fonts/colours
« Reply #1 on: May 25, 2002, 09:42:39 am »

I will see what I can do Next Page

Nikolay
Logged

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
RE:Request: Object that reports current fonts/colours
« Reply #2 on: May 25, 2002, 11:17:54 pm »

Thanks Nikolay ... it's appreciated.
Logged

Nikolay

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1681
  • Former CTO, JRiver, Inc.
RE:Request: Object that reports current fonts/colours
« Reply #3 on: May 28, 2002, 02:15:52 pm »

Rhino,

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

Nikolay
Logged

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
RE:Request: Object that reports current fonts/colours
« Reply #4 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
Logged

Nikolay

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1681
  • Former CTO, JRiver, Inc.
RE:Request: Object that reports current fonts/colours
« Reply #5 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
Logged

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
RE:Request: Object that reports current fonts/colours
« Reply #6 on: May 29, 2002, 10:20:20 pm »

Excellent Nikolay ... just the sort of info I need.


Thanks.
Logged
Pages: [1]   Go Up