mIRC Homepage
Posted By: ashburry custom windows - 13/09/19 11:01 AM
Custom windows opened on desktop and hidden cannot be restored.

Code
/window -d @win
/window -h @win
/window -r @win


Window will not restore back in to view on mIRC 7.55
Posted By: Khaled Re: custom windows - 27/09/19 04:44 PM
Thanks for your bug report. This issue has been fixed for the next version.
Posted By: Raccoon Re: custom windows - 28/09/19 10:28 PM
Use /window -w @win to counter /window -h @win

w[N] = where 0 = hide from switchbar/treebar, 1 = show in switchbar, 2 = show in treebar, 3 = show in both ... for more flexibility in exact behavior.

/window -w @win (show window aka unhide window) --- then you can use /window -r @win to restore the window
/window -w0 @win (hide from switchbar & treebar)
/window -w1 @win (show in switchbar & hide in treebar)
/window -w2 @win (hide in switchbar & show in treebar)
/window -w3 @win (show in treebar & show in switchbar)

(I am uncertain if Khaled should change this behavior.)
Posted By: Wims Re: custom windows - 29/09/19 06:16 AM
Quote
122.Added /window -w switch which turns a @windows switchbar button on
if it was previously turned off.
This is what -w should be doing, I'm not sure if that's the same as show window aka unhide window but it's not in the help file, so scripts are not using it, most likely.
Posted By: Khaled Re: custom windows - 29/09/19 12:49 PM
Previously, /window -r (restore window size) was only being applied to windows in a min/max state. This makes sense because it would have no effect on the size of a non-min/max state window.

However, as /window -r also affects window visiblity, it should be applied to windows in a non-min/max state as well, so that a scripter will know that /window -r will make a window visible regardless of what state it is in.

So I think the change makes sense.
Posted By: Raccoon Re: custom windows - 30/09/19 01:49 AM
They just always seemed like different unrelated attributes to me. min/max/restore versus visible = true/false. I imagine people manage the x y coordinates and min/max/restore (restore = regular) states of their windows, while independently managing the window's visibility based on channel activity or other criteria. The change you propose would force a hidden window to become visible if it's merely repositioned.

I use channel visibility based on channel activity, but since my channels are always max/min, and never regular, I don't have a bone in the fight. Other people who use tiled or cascaded windows might.

Edit:

Quote
31./window -a now shows a window that was hidden with /window -h.


If you use /window -a, it will behave as if you used both -w and -r
© mIRC Discussion Forums