What is the simplest way to have Qeditor remember it's window placement?

Started by box, June 23, 2010, 10:28:36 PM

Previous topic - Next topic

box

When I close notepad it saves its window size and location so new instances open in the same place, Qeditor windows on the other hand start in the middle of the screen at ~800*500. My understanding is that there is no setting to change this, and the source code is not available, so short of writing a loader that calls MoveWindow, is there an easy way to do this?

hutch--

Nope,

Differing from other editors QE is a multiple instance editor so remembering the screen location for one instance is no use as the next instance would change the setting. It is technically easy to do in an editor that only runs a single instance but unworkable in a multiinstance format.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php


Tedd

A straight-forward solution would be to only save the position of the last instance closed.
For those who only ever open a single instance, this would be perfect; for those who open 50 instances at once, it wouldn't make much difference (if I open multiple instances, I'm going to move the windows to where I want them anyway, so where they appear to begin with doesn't really matter.)

Also, opening to 75% of the screen size is rarely appropriate.
No snowflake in an avalanche feels responsible.

sinsi

I wouldn't even worry, just write it to the registry when it closes.
I have noticed that depending on how you start it, it will start normal or maximised. IE seems to do the same paging dr howard
Light travels faster than sound, that's why some people seem bright until you hear them.

jj2007

Quote from: Tedd on June 24, 2010, 11:32:52 AM
Also, opening to 75% of the screen size is rarely appropriate.

I rarely have windows open that are not maximised. As Sinsi pointed out, starting it maximised is very easy, just modify the *.lnk properties. But maybe there are folks who enjoy to see some source code plus some fragments of Forum posts in parallel :wink

hutch--

Tedd,

in the later version of QE posted in the masm32 subforum the window is controlled to a maximum aspect ratio as it opens too wide in a wide display monitor if you don't. With older CRT monitors I used to mainly work in full screen but with a 24 inch screen I now work in Windows as you are wasting about half of you screen if you don't.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Tedd

I was actually thinking more along the lines of no default scheme will be suitable for everyone - I tend to adjust the window to be longer vertically, others like fullscreen, and others like ..... - and so saving the width and height (as would go along with saving the position) would deal with that nicely.
No snowflake in an avalanche feels responsible.

sinsi

That's what I was getting at - I have a standard size for things and get irritated (a bit) when my window sometimes is max'd :( boo hoo
Unexpected behaviour is the bane/spice of human life eh?
Light travels faster than sound, that's why some people seem bright until you hear them.