Home AMX User Forum NetLinx Studio
Options

Program Control of Popup Location...

Is there a command to set the location of a popup from Netlinx? I can find commands to change the show/hide effects locations but not the default location. I have a message dialog that I'd like to load based on location of the button pressed. Swear I've seen this before but can't find it...

Thanks

Comments

  • Options
    I was playing around with transitions the other day and was hoping to find a command for this too. Unfortunately I didn't find an answer. However, you could use the button position command, make the popup full screen, then move the alert button to where you'd like it.
  • Options
    sonnysonny Posts: 208
    I was playing around with transitions the other day and was hoping to find a command for this too. Unfortunately I didn't find an answer. However, you could use the button position command, make the popup full screen, then move the alert button to where you'd like it.

    yea, I may have to do that, although I've multiple buttons in the window which may be shown, or not, depending upon context. Kind of a pain having to create maps for every possible location.
  • Options
    This should be a NetLinx Enhancement Request.

    This should be a NetLinx Enhancement Request.
    Can someone @ AMX put this in as a requested change.

    ADD THE ABILITY TO CHANGE THE POPUP POSITION AT RUNTIME.
    Please.

    I played with those commands as well. The popup position did not change no matter what I did.
    Does anyone know what these functions do?
    "'@PHP-&lt;popup page name>;<X coordinate>,<Y coordinate>'"
    "'@PSE-&lt;popup page name>;<show effect name>'"

    I made the calls and nothing changed at all.
  • Options
    DHawthorneDHawthorne Posts: 4,584
    This should be a NetLinx Enhancement Request.
    Can someone @ AMX put this in as a requested change.

    ADD THE ABILITY TO CHANGE THE POPUP POSITION AT RUNTIME.
    Please.

    I played with those commands as well. The popup position did not change no matter what I did.
    Does anyone know what these functions do?
    "'@PHP-&lt;popup page name>;<X coordinate>,<Y coordinate>'"
    "'@PSE-&lt;popup page name>;<show effect name>'"

    I made the calls and nothing changed at all.

    Probably exactly what they look like, but only on specific panels and firmware revisions. Wouldn't shock me if they only apply to the new superwide ones. On the bright side, such additions usually find their way to older modules in a firmware revision, as long as the hardware can support it.
  • Options
    I played with those commands as well. The popup position did not change no matter what I did.
    Does anyone know what these functions do?
    "'@PHP-&lt;popup page name>;<X coordinate>,<Y coordinate>'"
    "'@PSE-&lt;popup page name>;<show effect name>'"

    I made the calls and nothing changed at all.

    PHP changes the Hide Effect position, and PSE changes the Show Effect Type. There are also commands for Show Effect position, and Hide Effect type, so make sure you are using the right ones.

    Unfortunately, the position commands don't change where the popup ultimately ends up (where you place it in TP4 is where it stays), but where it "goes to" or "comes from" when you show or hide it. So if your popup is at position 50,30 and the Show Effect is "Slide from Top" and the Show Effect Position is set at 30 then the popup will appear to Slide in from it's top edge. This is great for making "drawers" and drop down menus.
    DHawthorne wrote: »
    Probably exactly what they look like, but only on specific panels and firmware revisions. Wouldn't shock me if they only apply to the new superwide ones. On the bright side, such additions usually find their way to older modules in a firmware revision, as long as the hardware can support it.

    The show and hide effects work on most of the TPs I use (Modero, MVP) with current firmware.
  • Options
    TurnipTruckTurnipTruck Posts: 1,485
    Can button locations be changed during run time?

    Sent from my MB865 using Tapatalk
  • Options
    jjamesjjames Posts: 2,908
    Can button locations be changed during run time?
    Yes they can, I do this occasionally and have all of my sources buttons available - and just move them around as needed dependent on zone & source availability.

    I am sure there is an individual command for it, but I use it with BMF - it's the R (set rectangle I think?) attribute.

    As I think about this, I *think* I've tried this on a popup with a variable address and was able to move it around, though cannot confirm at the moment.
  • Options
    TurnipTruckTurnipTruck Posts: 1,485
    I've had thoughts of making a screen saver with images that appear on different locations on the screen. Moving a popup around would be a good way to accomplish.

    Sent from my MB865 using Tapatalk
  • Options
    jjamesjjames Posts: 2,908
    Just wanted to confirm that BMF with the "R" attribute and BSP do NOT move a popup, they will move buttons however.
  • Options
    viningvining Posts: 4,368
    I've had thoughts of making a screen saver with images that appear on different locations on the screen. Moving a popup around would be a good way to accomplish.

    Sent from my MB865 using Tapatalk
    Well then you should be able to put a dynamic image on a button and then use the commands that JJ pointed out to change the location. Put the button on a full page pop up when incactive or selected and then use the tranparency commands to fade the button in and out when you transition from one pic to another. Fade out in one location and fade in at another.

    Personnally I don't put pics on TPs any more since I don't want them on when they're not in use. Too expensive to burn out so unless it's on an iPad I wouldn't bother. If you limit this to the customer having to actively select the feature it wouldn't be so bad but I used to do mine so that it started any time the panel was inactive and that's not good.
Sign In or Register to comment.