As I am finally moving to a new notebook with a 16:9 screen and my desktop screen is 5:4, I am starting to look at drawing graphics on 2 different types of screen. I have resisted the new notebook wide screen format for a long time !
These will require different layouts and I am wanting to adjust the graphics to suit the active screen. I also am considering the overhead projector as a second screen, rather than a copy screen.
I have taken the RESIZE.F95 example to learn how to resize a graphics screen and shift it between the two display screens. I note that clearwin_info@ ('SCREEN_WIDTH') gives the dimensions of the primary screen, and not the active screen. I want to find out the location and aspect ratio of the active screen. I note that 'GetWindowRect' (which I assume is used by Get_Window_Location@ ?) gives the size of the graphics window. After the graphics screen is relocated and sized to the new display screen, I can use these dimensions to draw to the new screen ? (Do I need to as drawing is wrt top left of active screen ?) I can identify the second screen is in use from the response from GetWindowRect but not the screen dimensions.
In the past I have just dragged the graphics onto the second screen and redrawn, where the aspect ratio allows. I don't appear to need to add 1200 to X to get to the second screen, as the X addreses are local to the application window. I do note that pop-ups appear on the primary screen, rather than the active screen.
In the past I have used i = winio@ ('%ww[no_frame,maximise]&') to select all the screen, but my implementation needs to know the active screen aspect ratio to work well. With the dramatic change in aspect ratio, I now need to address this problem more carefully.
Does anyone have advice on how best to manage the active or second screen.
John