Home AMX User Forum NetLinx Studio

can't make close popup group

adysadys Posts: 395
SEND_COMMAND Panel,"'@CPG-Map Preset'" // hide all preset screen group



"Map Preset" is the name pasted from TPdesign, no mistakes.


I event tried to close the group by closing one specific page

SEND_COMMAND Panel,"'@PPK-Preset Map Kitchen Lights'"

not working :(

I done it before and it worked with other groups, what is wrong?


Amd BTW, its not support to work that if I open one popup from a group, its close the others from the same group?

Comments

  • DHawthorneDHawthorne Posts: 4,584
    I thought the CPG command removed the popup from the group, not deactivate the group. PPK and PPF definitely close the entire group the specified page is part of, but if you are removing them from the group with CPG, of course they won't work after that.
  • TPDesign3 panels:
    '@CPG-' is a command to set page color.
    There is no command to close a popup group

    Modero panels:
    '@CPG' will remove all popups from the assigned group. This will NOT just close the group!

    The '@PPK-' should be the right choice for both panel types. But I'm not sure if it will affect a popup group, if the assigned popup is in the group but not open at the moment.
  • adysadys Posts: 395
    Opps!

    Thats what I got from here..
    http://www.amxforums.com/showthread.php?t=2791

    So what it they way to close a group by its name?
    PPK will work only for a specific page inside the gruop


    Changing the page not suppose to close the rest from the same gruop?
  • DHawthorneDHawthorne Posts: 4,584
    When you close a single popup that is part of a group, the whole group closes ... even if that popup was not active in the first place. I use this all the time.
Sign In or Register to comment.