Which Monitor

I have a SA project that uses the dual screen mode (setup from screen profiles). the screens are setup such that they are not linked.

in other words. both screens can be used independently from another. both screens are setup to run a different master page.

is there a way to tell from cicode which screen a particular object is on or perhaps which master pane is it based upon?

Thanks

  • Try:
    The following functions will get you the information you need for a variety of multi-monitor scenarios. What ever graphics expression/command/event they are called from will determine the monitor from that.

    PageInfo(30) (See the help)
    Workspace_GetWorkspaceFromName
    Workspace_GetWorkspaceFromWindow

    The workspace code should give you plenty of examples of their usage.

    cheers,
    bradley
  • Thanks.
    PageInfo was what i was after. you mentioned the other workspace commands above. they return the workspace ID.
    Are you able to suggest examples on what we might do with the ID returned?
  • You may want to use it as part of an identifier if you were temporarily writing things to disk. (See TrendPage)
    You may want to get the Window handle to a specific pane of a specific workspace (perhaps for access to page variables)
    You may want to use it for diagnostics.
  • on the subject of workspace. popups don't seem to be working fine in a 2 monitor setup. whenever we invoke the WinNewAt function from monitor 2, the popup consistently appears in monitor 1. the mode we used was 0+1+2+4+128+256.
    is there a way to force the pop up window to remain on screen 2?