HydrogenAudio

Hosted Forums => foobar2000 => Development - (fb2k) => Topic started by: NEMO7538 on 2011-07-03 10:18:55

Title: Find all windows pertaining to a given ui element subclass
Post by: NEMO7538 on 2011-07-03 10:18:55
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
Title: Find all windows pertaining to a given ui element subclass
Post by: foosion on 2011-07-03 20:56:34
As far as I know that is not possible. What are you trying to achieve? Perhaps there is another way.
Title: Find all windows pertaining to a given ui element subclass
Post by: NEMO7538 on 2011-07-03 22:25:07
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.
Title: Find all windows pertaining to a given ui element subclass
Post by: kerpondile on 2011-12-12 19:18:46
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)
Title: Find all windows pertaining to a given ui element subclass
Post by: foosion on 2011-12-14 20:17:01
kerpondile: Have you tried playlist_manager::playlist_ensure_visible (http://foosion.foobar2000.org/doxygen/latest/classplaylist__manager.html#ad34d15e45fb4ade0e9e1ba87fb1aaf24)?
Title: Find all windows pertaining to a given ui element subclass
Post by: kerpondile on 2011-12-15 08:11:21
@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 (http://foosion.foobar2000.org/doxygen/latest/classplaylist__manager.html#a24ecdc686874c147d542f805a0b72ca6))
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.
Title: Find all windows pertaining to a given ui element subclass
Post by: NEMO7538 on 2011-12-29 06:44:06
for 2) &  3) I would have used request_activation (http://foosion.foobar2000.org/doxygen/latest/classui__element__instance__callback.html#aeb2ea1ec6900b4c7da8a024d5a5648dc) 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.
Title: Find all windows pertaining to a given ui element subclass
Post by: NEMO7538 on 2012-03-06 07:59:19
Wrong post ... sorry. Please delete