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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        93 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        138 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        123 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        73 views
        0 likes
        Last Post PaulMohn  
        Working...
        X