EmEditor (text editor) Forum Index
   Enhancement Suggestions about Plug-ins
     Snippet Plugin Property Dialog resize-able or bigger
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
Stefan
Posted on: 7/17/2011 10:57 am
Home away from home
Joined: 7/14/2008
From: Germany, EU
Posts: 263
Snippet Plugin Property Dialog resize-able or bigger
I would like to suggest to make the window
of the Snippet Plugin Property Dialog resize-able
or at least greater (wider&higher) by default.

I know i can click at [Edit], but i like to have
more space for the text input field in that very dialog.



Thanks

10.1 at XP
CrashNBurn
Posted on: 7/17/2011 2:16 pm
Just can't stay away
Joined: 4/8/2010
From:
Posts: 130
Re: Snippet Plugin Property Dialog resize-able or bigger
Here's a non-internal solution:
Requires ResizeEnable by Digi Tallis, and AutoHotkey.

Ctrl+ RightClick in the newly opened snippets properties dialog. And it will resize the window to nearly full screen.
Size is controlled by the line:
---> MouseClickDrag, Left,,, 1680, 1050, 100, R

Change 1680, 1050 to width/height desired.

	#SingleInstance, Force 
	#Persistent
	#NoEnv
	#MaxHotKeysPerInterval, 100
SetBatchLInes, -1
SetMouseDelay, -1
SetTitleMatchMode, Regex
DetectHiddenWindows, on

#ifWinActive, Properties ahk_class ^#32770$
{
	^RButton::
	{
		parent:=QueryParent(WinActive("A"))
		pClass:=WinGetClass(parent)
		if( pClass == "EmEditorMainFrame3" )
		{
			WinMove, 10, 10
			WinGetPos, xWin, yWin, wWin, hWin, A
			CoordMode, Mouse, Screen
			MouseMove, % wWin + xWin - 2, % hWin + yWin - 2, 10
			Click
			Sleep, 750
			MouseClickDrag, Left,,, 1680, 1050, 100, R
		}
	return
	}
return
}


WinActiveA( aWin="", winText="", notTitle="", notText="" )
{
	return WinActive( (aWin+0 ? "ahk_id " aWin : aWin), winText, notTitle, notText )
}

WinGetClass( aWin="A", winText="", notTitle="", notText="" )
{
	WinGetClass, wClass, % (aWin+0 ? "ahk_id " aWin : aWin), %winText%, %notTitle%, %notText%
return wClass
}

QueryParent(childID, byRef ownerID=FALSE)
{
	childID:=(childID + 0 ? childID : WinActive("A"))
	retReal:=(ownerID ? TRUE : FALSE)
	ownerID:=childID
	while((ownerID:=DllCall("GetWindow", "uint", ownerID, "int", 4)) && (parent:=ownerID)) ; && grandParent
		continue
return ( retReal ? parent : (parent ? parent : ownerID:=childID))
}

Not as good as an internal solution. And not as good as a custom solution. But a custom solution would entail moving each individual control a set amount (changing x/y coords, and width/height for each control).
Threaded | Newest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文