Find all windows pertaining to a given ui element subclass, How do I? |
This forum is for developer discussions only. If you have a problem / bug report / idea / feature request that isn't related to foobar2000 SDK, post it in an appropiate forum instead - tech support questions go to support forum, everything else goes to general forum.
All non-developer posts on this forum will be removed. Continued abuse of this forum will result in admin actions (warnings, account suspension).
![]() ![]() |
Find all windows pertaining to a given ui element subclass, How do I? |
Jul 3 2011, 10:18
Post
#1
|
|
![]() Group: Developer Posts: 805 Joined: 28-November 03 Member No.: 10088 |
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 This post has been edited by NEMO7538: Jul 3 2011, 10:19 |
|
|
|
Jul 3 2011, 20:56
Post
#2
|
|
![]() Group: FB2K Moderator (Donating) Posts: 4224 Joined: 24-February 03 Member No.: 5153 |
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
|
|
|
|
Jul 3 2011, 22:25
Post
#3
|
|
![]() Group: Developer Posts: 805 Joined: 28-November 03 Member No.: 10088 |
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.
|
|
|
|
Dec 12 2011, 20:18
Post
#4
|
|
|
Group: Developer Posts: 146 Joined: 26-January 04 Member No.: 11525 |
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) |
|
|
|
Dec 14 2011, 21:17
Post
#5
|
|
![]() Group: FB2K Moderator (Donating) Posts: 4224 Joined: 24-February 03 Member No.: 5153 |
kerpondile: Have you tried playlist_manager::playlist_ensure_visible?
-------------------- http://foosion.foobar2000.org/ - my components for foobar2000
|
|
|
|
Dec 15 2011, 09:11
Post
#6
|
|
|
Group: Developer Posts: 146 Joined: 26-January 04 Member No.: 11525 |
@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. |
|
|
|
Dec 29 2011, 07:44
Post
#7
|
|
![]() Group: Developer Posts: 805 Joined: 28-November 03 Member No.: 10088 |
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.
|
|
|
|
Mar 6 2012, 08:59
Post
#8
|
|
![]() Group: Developer Posts: 805 Joined: 28-November 03 Member No.: 10088 |
Wrong post ... sorry. Please delete
This post has been edited by NEMO7538: Mar 6 2012, 09:00 |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th June 2013 - 09:46 |