05-19-2017 05:35 PM
I've assigned the following commands to 2 function keys to be able to display my Display Manager windows just the way I like:
wdef 1 1 100 122
wdef 1 122 100 120
On the image, the log window in the right is exactly where I want it to be. Same for the window behind the foremost program editor. But the editor window, for some reason, does not align and size the same way other types of windows (logs for instance) do. There is a gap at the top, one at the bottom, and it overextends to the right.
Is this a known / fixed issue?
Thanks in advance
SAS 9.2 TS Level2M3
05-19-2017 05:40 PM
Have you issued a WSAVE command after getting the editor where you like it?
Try typing WSAVE in the command box after gettting is set.
Note that resizing the overall SAS window will likely result in the saved positions not quite aligning
05-19-2017 07:16 PM
Thanks for the reply.
I tend to use shortcuts like these a lot to move and arrange my windows (including the default shift+F3 and shift+F4), so while wsave helps at startup time, it doesn't help after I've moved things around.
05-22-2017 11:11 AM
Second and subsequent enhanced editor windows apparently use an offset of x and y coordinates for the upper left corner based on the previously opened enhanced editor with some fixed vertical limit and the width of the SAS window overall as limit to the right. Only the "first" enhanced editor window uses the saved coordinates.I suspect that this may be buried in the actual enhanced editor code as I have spent a little time searching registries for any entry that might be related to that positioning behavior.
There have been periodic questions about this behavior over the years but apparently not enough interest for SAS institute to implement any change.
If your second 'editor' window is the older Program window you could use that though appearance and behavior are different and so may not be sufficient for your specific need.
05-23-2017 10:49 AM
Thanks for researching the issue... It is strange though how any other type of window will be placed according to the wdef coordinates when issuing a wdef command. Only the editor windows have this vertical offset... No matter if it is the first or any subsequently opened windows (as another reply suggests).
05-23-2017 10:53 AM
It doesn't relate to the number of opened editor windows... Even with just one editor window open (the default empty editor), I get the same behavior when using wdef commands.
05-23-2017 11:21 AM
05-23-2017 12:55 PM
05-23-2017 03:23 PM
The entries modified when doing a wsave with an active editor window are DMSDEF and WHOSTEDIT. But in sas 9.2 (I don't know about later versions), there is no "action" for this type of item and I am not aware of a way to visualize their content...