Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    AlwaysOnTop window?

    Hello,

    I need to create a window which would allow interaction with the windows behind it (so not modal) but would remain visible and accessible all the time.

    For example, in the following code, how can I make window2 remain visible when the user clicks on the button on window1?
    Note it's important for me that window2 will remain accessible and fully visible even if other windows (modal or not) are opened later.
    Any way to achieve that?

    Code:
    isc.Window.create({
      ID:"window1",
      placement: "fillScreen",
      title: "Main Window",
      items: [isc.Button.create({
                title: "Do Something",
                width: 100,
                click : function () { /* do soething */ }})]
    });
    
    isc.Window.create({
      ID:"window2",
      title: "Tool Window",
      left: "100px",
      top: "100px",
      width: "300px",
      height: "300px",
      items: [isc.HelpCanvas.create()]
    });
    I am on v12.1

    Thanks
    Gil

    #2
    We would caution against using this pattern, since if there are some circumstances where the user wants to use the full screen and doesn't need the always-on-top Window, it can be really annoying. You might consider instead some dedicated spot that you can click to get the window back.

    However, to implement it, you want a mouseUp handler on your other Windows that calls bringToFront() on the always-on-top Window.

    Comment

    Working...
    X