Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to make window workspace specific

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to make window workspace specific

    I have an ind that creates an external NTWindow like in the SetIndicatorValueFromAddonWindowExample on the forum. The window works great, but it is not workspace specific. So when I switch workspaces, the window is still present vs being hidden with other workspace windows.

    What needs to change to make the window workspace specific?

    I don't want the window to be persisted, just be workspace specific.

    #2
    Hi aslane, thanks for your post.

    The addon needs to inherit IWorkspacePersistence and implement the overrides. I attached my test script here for reference.

    Best regards,
    -ChrisL
    Attached Files

    Comment


      #3
      That makes the window workspace aware. However, the window is save/restored with the workspace, which is a problem even in the sample, as the window is restored, but not connected to the ind.

      I would like for the window to not be saved. I tried commenting out the contents of Save/Restore, but that did not matter.

      Any ideas?

      Comment


        #4
        Hi aslane, thanks for your reply.

        My apologies, I did not see that the entire window spawn behavior relies on the button being clicked. The window would need to be launched from the button to create the proper context on each launch (because it assigns the indicator instance in the Click event).

        Best regards,
        -ChrisL

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        620 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        359 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        562 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        566 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X