News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

QEditor question

Started by GoneFishing, September 11, 2013, 12:49:19 AM

Previous topic - Next topic

GoneFishing

Hi,
Does anybody know if QEditor initial window's size / position can be changed or not?

jj2007

Not with a built-in setting AFAIK, but it's a window like any other, just move it...

include \masm32\MasmBasic\MasmBasic.inc        ; download
        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.

GoneFishing

Thank you, Jochen!  :t
That's a very nice idea! Now I want to write my own QE launcher  :t