Quick question. How exactly does tilewindows decide which window to put where? It seems that if I shuffle the arrangement of my windows, then run the tilewindows command with certain parameters, it'll just tile them in some weird order, then if I shuffle the arrangement again, it'll put them in a different order. Is there any way to force tilewindows to tile windows in a specific order, say alphabetical for example.
I suspect that TileWindows just moves and resizes windows and doesn't change the window order.
If you want to order the windows you need to call "DoWindow/F " in the reverse order.
Here is an example:
Function OrderGraphs() String list = WinList("*", ";", "WIN:1")// List of all graph windows
list = SortList(list, ";", 17)// Case-insensitive alphanumeric descending sort // Print list Variable numWindows = ItemsInList(list) Variablei for(i=0; i<numWindows; i+=1) String name = StringFromList(i, list) DoWindow/F $name endfor End
I suspect that TileWindows just moves and resizes windows and doesn't change the window order.
If you want to order the windows you need to call "DoWindow/F " in the reverse order.
You are absolutely right. It goes by order of activation, so the most "recent" window will be at the top left etc. Most people probably wouldn't have this issue, but when you have a large screen and ~30 graphs to show simultaneously in a specific order, this helps a lot.
If you want to order the windows you need to call "DoWindow/F " in the reverse order.
Here is an example:
String list = WinList("*", ";", "WIN:1") // List of all graph windows
list = SortList(list, ";", 17) // Case-insensitive alphanumeric descending sort
// Print list
Variable numWindows = ItemsInList(list)
Variable i
for(i=0; i<numWindows; i+=1)
String name = StringFromList(i, list)
DoWindow /F $name
endfor
End
January 28, 2014 at 08:20 pm - Permalink
You are absolutely right. It goes by order of activation, so the most "recent" window will be at the top left etc. Most people probably wouldn't have this issue, but when you have a large screen and ~30 graphs to show simultaneously in a specific order, this helps a lot.
As always, thank you for your tremendous help.
February 1, 2014 at 11:35 am - Permalink