The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: box on June 23, 2010, 10:28:36 PM

Title: What is the simplest way to have Qeditor remember it's window placement?
Post by: box on June 23, 2010, 10:28:36 PM
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?
Title: Re: What is the simplest way to have Qeditor remember it's window placement?
Post by: hutch-- on June 24, 2010, 12:19:00 AM
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.
Title: Re: What is the simplest way to have Qeditor remember it's window placement?
Post by: box on June 24, 2010, 02:57:43 AM
Okay, thanks for the clarification
Title: Re: What is the simplest way to have Qeditor remember it's window placement?
Post by: Tedd on June 24, 2010, 11:32:52 AM
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.
Title: Re: What is the simplest way to have Qeditor remember it's window placement?
Post by: sinsi on June 24, 2010, 11:56:34 AM
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
Title: Re: What is the simplest way to have Qeditor remember it's window placement?
Post by: jj2007 on June 24, 2010, 12:36:07 PM
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
Title: Re: What is the simplest way to have Qeditor remember it's window placement?
Post by: hutch-- on June 24, 2010, 02:24:17 PM
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.
Title: Re: What is the simplest way to have Qeditor remember it's window placement?
Post by: Tedd on June 25, 2010, 11:07:34 AM
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.
Title: Re: What is the simplest way to have Qeditor remember it's window placement?
Post by: sinsi on June 25, 2010, 11:22:31 AM
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?