Third, I think I explained it in my first post. I need to sometimes move a window off-screen so that I can see something else, but I don't want to minimize it because then I can't find it again. Moving it off-screen and back on again is quick and easy. If there was a button I could press that would let me quickly hide/restore a tool window, I could probably work with that.
ok, that's why I asked. There's some commands for hiding and showing tool windows.
Slick V23 introduced save_named_layout and load_named_layout commands. These allow you to save and restore all your tool-windows and toolbars with a particular layout - you get prompted for a name for each layout. So if you call save_named_layout from the command line and save a layout as "t1" you can create a command to load that layout like this - and bind a key to it.
_command void t1() name_info(',')
{
load_named_layout("t1");
}
There are also built in macros to activate and toggle tool-window visibility e.g.
activate_clipboards and toggle_clipboards
There's no "hide_clipboards" command but you can make one like this
_command void hide_clipboards() name_info(',')
{
activate_clipboards();
toggle_clipboards();
}
Have a look at the attached xxutils.e file show_xmenu1 command to see how to create a popup menu of your own.
There are also commands to save restore the set of open files
save_named_files, load_named_files
and save restore a session
save_named_state, load_named_state
There's a github repo here that has my xretrace macros including xxutils
https://github.com/jporkka/slickMacrosThe github repo is mostly jporkkahtc macros - see the toolWindows folder for a macro that can toggle or float a tool-window.