The MASM Forum

General => The Campus => Topic started by: GoneFishing on September 11, 2013, 12:49:19 AM

Title: QEditor question
Post by: GoneFishing on September 11, 2013, 12:49:19 AM
Hi,
Does anybody know if QEditor initial window's size / position can be changed or not?
Title: Re: QEditor question
Post by: jj2007 on September 11, 2013, 03:06:34 AM
Not with a built-in setting AFAIK, but it's a window like any other, just move it...

include \masm32\MasmBasic\MasmBasic.inc        ; download (http://masm32.com/board/index.php?topic=94.0)
        Init
        Launch Cat$("\Masm32\qEditor.exe "+CL$())
        push 127
        .Repeat
                Delay 5
                dec stack
                .Break .if Sign?
        .Until WinByTitle(CL$(), 4+1)        ; find a \Masm32\whatever.asm window
        .if !Sign?
                xchg eax, edi        ; save the window handle
                Let esi=FileRead$("\Masm32\qEdPos.ini")
                push 1
                push Val(Mid$(esi, Instr_(esi, "h=")+2))
                push Val(Mid$(esi, Instr_(esi, "w=")+2))
                push Val(Mid$(esi, Instr_(esi, "y=")+2))
                push Val(Mid$(esi, Instr_(esi, "x=")+2))
                push edi
                call MoveWindow        ; invoke MoveWindow, edi, x, y, w, h, 1
        .endif
        pop ecx
        ; Print Str$("%i iterations left", ecx)
        Exit
end start


Edit qEdPos.ini according to your needs.
Title: Re: QEditor question
Post by: GoneFishing on September 11, 2013, 03:22:55 AM
Thank you, Jochen!  :t
That's a very nice idea! Now I want to write my own QE launcher  :t