Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9499
    Stefan
    Participant

    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

    #9504
    CrashNBurn
    Member

    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).

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.