Notepad - resizing

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Susan Cragin

Notepad - resizing

Post by Susan Cragin »

I use the included Notepad a lot.
WINE used to save where I had re-sized and placed it, but now it does not.
How do I save my re-size?
Thank you.
Alexander Nicolaysen S...

Notepad - resizing

Post by Alexander Nicolaysen S... »

I use the included Notepad a lot.
WINE used to save where I had re-sized and placed it, but now it does not.
How do I save my re-size?
Thank you.
From looking at the source it does not seem like notepad tries to restore the
previously used window size; this may have been done by your window manager.
Wine's wordpad is will remember the last window size.

Do you know what notepad on Windows does?


Alexander N. Sørnes
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Notepad - resizing

Post by vitamin »

Susan Cragin wrote:I use the included Notepad a lot.
WINE used to save where I had re-sized and placed it, but now it does not.
How do I save my re-size?
Thank you.
Strange it works for me and the code looks correct. Can you attach the output of this command?

Code: Select all

wine regedit /e - "HKEY_CURRENT_USER\Software\Microsoft\Notepad"
Susan Cragin

Notepad - resizing

Post by Susan Cragin »

In Windows it retains the size.

-----Original Message-----
From: Alexander Nicolaysen Sørnes <[email protected]>
Sent: Apr 1, 2008 9:31 AM
To: [email protected], Susan Cragin <[email protected]>
Subject: Re: [Wine] Notepad - resizing
I use the included Notepad a lot.
WINE used to save where I had re-sized and placed it, but now it does not.
How do I save my re-size?
Thank you.
From looking at the source it does not seem like notepad tries to restore the
previously used window size; this may have been done by your window manager.
Wine's wordpad is will remember the last window size.

Do you know what notepad on Windows does?


Alexander N. Sørnes
Mark Knecht

Notepad - resizing

Post by Mark Knecht »

Is there any way of knowing whether in Windows notepad saves its own
size or whether Windows saves it for notepad?

I wonder what happens if you move the Windows notepad executable to a
Linux box and run it under Wine?

- Mark

On Tue, Apr 1, 2008 at 8:23 AM, Susan Cragin <[email protected]> wrote:
In Windows it retains the size.


-----Original Message-----
From: Alexander Nicolaysen Sørnes <[email protected]>
Sent: Apr 1, 2008 9:31 AM
To: [email protected], Susan Cragin <[email protected]>
Subject: Re: [Wine] Notepad - resizing
I use the included Notepad a lot.
WINE used to save where I had re-sized and placed it, but now it does not.
How do I save my re-size?
Thank you.
From looking at the source it does not seem like notepad tries to restore the
previously used window size; this may have been done by your window manager.
Wine's wordpad is will remember the last window size.

Do you know what notepad on Windows does?


Alexander N. Sørnes

vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Notepad - resizing

Post by vitamin »

DO NOT top post!
Mark Knecht wrote:Is there any way of knowing whether in Windows notepad saves its own
size or whether Windows saves it for notepad?
What will that tell you? Wine's notepad properly saves that info and restores it. If it doesn't work for some one - that's either the notepad is REALLY REALLY old or configuration is broken.
Mark Knecht

Notepad - resizing

Post by Mark Knecht »

Back at ya!

On Tue, Apr 1, 2008 at 10:51 AM, vitamin <[email protected]> wrote:
DO NOT top post!


Mark Knecht wrote:
Is there any way of knowing whether in Windows notepad saves its own
size or whether Windows saves it for notepad?
What will that tell you? Wine's notepad properly saves that info and restores it. If it doesn't work for some one - that's either the notepad is REALLY REALLY old or configuration is broken.

Boy, you be one bad dude with a real attitude. Chill out.

Running Window's notepad, should it save position on this system when
the Wine version doesn't might suggest that the Windows implementation
does things that the Wine implementation doesn't. That might suggest
that the issue the original poster is seeing is a Wine issue and not a
window manager issue. On the other hand if the position is not saved
then the problem might well be a window manager issue.

Really vitamin, what do you get for all this energy? LOL. Best laugh of the day!

Cheers,
Mark
Susan Cragin

Notepad - resizing

Post by Susan Cragin »

-----Original Message-----
Strange it works for me and the code looks correct. Can you attach the output of this command?

Code:
wine regedit /e - "HKEY_CURRENT_USER\Software\Microsoft\Notepad"
It did work for me this morning. I got the latest git and Notepad re-sized well. So the following is probably useless.
I know what WINE change caused it to not re-size, and unfortunately I don't have time to look it up. A few days ago someone added a patch code contributed by a user that made the windows manager work differently? Suddenly Notepad showed the wine logo in the upper left-hand corner, and it didn't re-size. Now it shows the notepad logo, and it does re-size.

susan@ubuntu:~$ wine regedit /e - "HKEY_CURRENT_USER\Software\Microsoft\Notepad"
REGEDIT4

[HKEY_CURRENT_USER\Software\Microsoft\Notepad]
"fMLE_is_broken"=dword:00000000
"fSaveWindowPositions"=dword:00000000
"fWrap"=dword:00000000
"iMarginBottom"=dword:000003e8
"iMarginLeft"=dword:000002ee
"iMarginRight"=dword:000002ee
"iMarginTop"=dword:000003e8
"iPointSize"=dword:00000064
"iWindowPosDX"=dword:0000019b
"iWindowPosDY"=dword:0000023c
"iWindowPosX"=dword:00000185
"iWindowPosY"=dword:0000001b
"lfCharSet"=dword:00000000
"lfClipPrecision"=dword:00000000
"lfEscapement"=dword:00000000
"lfFaceName"="Lucida Console"
"lfItalic"=dword:00000000
"lfOrientation"=dword:00000000
"lfOutPrecision"=dword:00000000
"lfPitchAndFamily"=dword:00000031
"lfQuality"=dword:00000000
"lfStrikeOut"=dword:00000000
"lfUnderline"=dword:00000000
"lfWeight"=dword:00000190
"StatusBar"=dword:00000000
"szHeader"="&f"
"szTrailer"="Page &p"
susan@ubuntu:~$
Susan Cragin

Notepad - resizing

Post by Susan Cragin »

Could this have anything to do with this issue? Valgrind errors fixed today, per developer list?

----------------------------------------------------------------

Thanks for the heads up, With Alexandre's latest fix to the code do the
valgrind errors persist?

-aric

Dan Kegel wrote:
Aric, can you have a look?

Any call to CreateWindow now spews lots of Valgrind errors.
For instance,
http://kegel.com/wine/valgrind/logs-200 ... l-diff.txt
contains:
+ Conditional jump or move depends on uninitialised value(s)
+ at RtlInitUnicodeString (unicode.h:212)
+ by LoadLibraryExW (module.c:924)
+ by LoadLibraryW (module.c:968)
+ by ImmCreateContext (imm.c:143)
+ by X11DRV_SetupXIM (xim.c:510)
+ by x11drv_init_thread_data (x11drv_main.c:654)
+ by X11DRV_SetWindowPos (x11drv.h:517)
+ by set_window_pos (winpos.c:1919)
+ by WIN_CreateWindowEx (win.c:1121)
+ by CreateWindowExW (win.c:1351)
+ by manage_desktop (desktop.c:224)
+ by WinMain (explorer.c:136)
+ by main (exe_main.c:48)
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Notepad - resizing

Post by vitamin »

Susan Cragin wrote:Could this have anything to do with this issue? Valgrind errors fixed today, per developer list?
Doubt. Those errors were fixed yesterday. And introduced a day before.

The code that saves / restores notepad settings haven't changed in some time. Might be just one of those unreproducible problems.
Locked