Discussion:
Source Insight tiling n windows
(too old to reply)
Mitch Condylis
2008-11-03 20:48:00 UTC
Permalink
Does anyone know how to tile, say, exactly 4 windows with source
insight? There is a menu option to tile 2 windows. I have multiple
screens and after stretching the source insight window across 2
screens would like to be able to have 4 files open with each taking up
25% of the source insight window. I can manually move and resize the
4 windows but I'd like a menu option similar to the tile 2 windows
menu option. I'm running version 3.50
Erik Hahn
2008-11-03 22:07:05 UTC
Permalink
Post by Mitch Condylis
Does anyone know how to tile, say, exactly 4 windows with source
insight? There is a menu option to tile 2 windows. I have multiple
screens and after stretching the source insight window across 2
screens would like to be able to have 4 files open with each taking up
25% of the source insight window. I can manually move and resize the
4 windows but I'd like a menu option similar to the tile 2 windows
menu option. I'm running version 3.50
Version 3.50 of WHAT? ;)

-Erik
--
v4sw5RUYhw2ln3pr5ck0ma2u7Lw3+2Xm0l6/7Gi2e2t3b6AKMen5+7a16s0Sr1p-5.62/-6.56g6OR
Anonymous
2008-11-04 12:10:30 UTC
Permalink
On Mon, 3 Nov 2008 23:07:05 +0100, Erik Hahn
Post by Mitch Condylis
I'm running version 3.50
Version 3.50 of WHAT? ;)
Sounds like he's using this[1] program (which I have no experience
with.)

[1] http://www.sourceinsight.com/prodinfo.html
--
Anonymous
Mitch Condylis
2008-11-04 14:25:55 UTC
Permalink
Post by Anonymous
On Mon, 3 Nov 2008 23:07:05 +0100, Erik Hahn
Post by Mitch Condylis
I'm running version 3.50
Version 3.50 of WHAT? ;)
Sounds like he's using this[1] program (which I have no experience
with.)
[1]http://www.sourceinsight.com/prodinfo.html
--
Anonymous
Correct. Version 3.5 of the product call Source Insight. I think this
may be doable with Source Insight macros. I've never used them before
but am stumbling through using the window functions. If I get this
working, I'll post the results.

Mitch
Mitch Condylis
2008-11-04 15:38:24 UTC
Permalink
Post by Mitch Condylis
Does anyone know how to tile, say, exactly 4 windows with source
insight?  There is a menu option to tile 2 windows.  I have multiple
screens and after stretching the source insight window across 2
screens would like to be able to have 4 files open with each taking up
25% of the source insight window.  I can manually move and resize the
4 windows but I'd like a menu option similar to the tile 2 windows
menu option.  I'm running version 3.50
Here's the macro to tile the 4 most recently displayed source windows.

macro TileGood4()
{
hwnda = GetApplicationWnd();

rect = GetWndClientRect(hwnda);

hwnd1 = GetCurrentWnd();
hwnd2 = GetNextWnd(hwnd1);
hwnd3 = GetNextWnd(hwnd2);
hwnd4 = GetNextWnd(hwnd3);


// First window is top left
if (hwnd1 != hNil)
{
if (IsWndMin(hwnd1))
MaximizeWnd(hwnd1);

SetWndRect(hwnd1,
rect.left,
rect.top,
rect.left + ((rect.right-rect.left)/2),
rect.top + ((rect.bottom-rect.top)/2));
}

// Second window is top right
if (hwnd2 != hNil)
{
if (IsWndMin(hwnd2))
MaximizeWnd(hwnd2);

SetWndRect(hwnd2,
rect.left + ((rect.right-rect.left)/2),
rect.top,
rect.right,
rect.top + ((rect.bottom-rect.top)/2));
}

// Third window is bottom left
if (hwnd3 != hNil)
{
if (IsWndMin(hwnd3))
MaximizeWnd(hwnd3);

SetWndRect(hwnd3,
rect.left,
rect.top + ((rect.bottom-rect.top)/2),
rect.left + ((rect.right-rect.left)/2),
rect.bottom);
}

// Fourth window is bottom right
if (hwnd4 != hNil)
{
if (IsWndMin(hwnd4))
MaximizeWnd(hwnd4);

SetWndRect(hwnd4,
rect.left + ((rect.right-rect.left)/2),
rect.top + ((rect.bottom-rect.top)/2),
rect.right,
rect.bottom);
}
}

Mitch

Loading...