Skip to main content

Topic: Find all windows pertaining to a given ui element subclass (Read 3819 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • NEMO7538
  • [*][*][*][*][*]
  • Developer
Find all windows pertaining to a given ui element subclass
For instance, I'd like to find all playlist renderers windows given this GUID
ui_element_subclass_playlist_renderers = { 0x3c4c68a0, 0xfc5, 0x400a, { 0xa3, 0x4a, 0x2e, 0x3a, 0xae, 0x6e, 0x90, 0x76 } })

Thanks for your support
  • Last Edit: 03 July, 2011, 05:19:16 AM by NEMO7538

  • foosion
  • [*][*][*][*][*]
  • Moderator
Find all windows pertaining to a given ui element subclass
Reply #1
As far as I know that is not possible. What are you trying to achieve? Perhaps there is another way.
http://foosion.foobar2000.org/ - my components for foobar2000

  • NEMO7538
  • [*][*][*][*][*]
  • Developer
Find all windows pertaining to a given ui element subclass
Reply #2
I'm just trying to find a playlist renderer window, invoke request_activation to make it visible (if for instance it is in a tab) and set focus to that window.

  • kerpondile
  • [*][*][*]
  • Developer
Find all windows pertaining to a given ui element subclass
Reply #3
I'm trying to achieve the same thing. Have you found a work-around for this?

(Actually I'm trying to show a certain item on a certain playlist)

  • foosion
  • [*][*][*][*][*]
  • Moderator
Find all windows pertaining to a given ui element subclass
Reply #4
kerpondile: Have you tried playlist_manager::playlist_ensure_visible?
http://foosion.foobar2000.org/ - my components for foobar2000

  • kerpondile
  • [*][*][*]
  • Developer
Find all windows pertaining to a given ui element subclass
Reply #5
@foosion

I have, and originally I thought that would do the trick. However, it does not
1) change the active playlist nor does it  (easily fixable by playlist_manager::set_active_playlist)
2) make the ui component visible (for example when the playlist is in a tab that is not currently selected)
3) set focus to the playlist ui element

I have yet to determine how to fix points (2) and (3).

Basically what I want to achieve is the same thing that happens when you double click the status bar and get the currently playing song, but obviously I want to choose what playlist and item to focus.

  • NEMO7538
  • [*][*][*][*][*]
  • Developer
Find all windows pertaining to a given ui element subclass
Reply #6
for 2) &  3) I would have used request_activation but you have to find a pointer to (ui__element__instance) a playlist renderer (there could be several), which was the purpose of my question.

  • NEMO7538
  • [*][*][*][*][*]
  • Developer
Find all windows pertaining to a given ui element subclass
Reply #7
Wrong post ... sorry. Please delete
  • Last Edit: 06 March, 2012, 03:00:54 AM by NEMO7538