Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: column UI buttons in a stack panel to effect contents within another s (Read 960 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

column UI buttons in a stack panel to effect contents within another s

Hello hydrogenaudio!

please view this image as an example:


I want to put some buttons in the top panel which will effect the contents within the navigational window.
the basic setup of my column UI config is as follows:

Panel Stack Splitter
    - Panel Stack Splitter (Top)
    - Panel Stack Splitter (Middle)
    - Panel Stack Splitter (Bottom)

if I put some code into the top panel:
Code: [Select]
$textbutton(10,20,100,30,Library,Library,SETGLOBAL:showpanel:1;REFRESH,fontcolor:255-255-255 brushcolor:100-100-100,fontcolor:255-255-255 brushcolor:105-210-231)
$textbutton(115,20,100,30,Playlist,Playlist,SETGLOBAL:showpanel:2;REFRESH,fontcolor:255-255-255 brushcolor:100-100-100,fontcolor:255-255-255 brushcolor:105-210-231)

$ifequal($get_ps_global(showpanel),1,
$showpanel_c(A,1),
$showpanel_c(A,0))
$ifequal($get_ps_global(showpanel),2,
$showpanel_c(B,1),
$showpanel_c(B,0))

just something simple to test if it works but... it does not.

now I think this is because the code for showpanel does not look at all panels for the name "A" or "B" but instead looks at all of those underneath the splitter in which you have the code, which means that this does not work...

does anyone have any idea in how I can make this happen?