Bug in Notepad Involving Asterisk in Title Bar
41–50 of 132 posts
Re: Bug in Notepad Involving Asterisk in Title Bar
#42What a feature to introduce in 2020. This has been a core part of the UI of OS X for… ever? For every app.
Simpler, more elegant, better integrated solution, consistent across the whole OS.
"Asterisk in the Title Bar" is a very unrefined solution to the problem.
Re: Bug in Notepad Involving Asterisk in Title Bar
#43Do you still get a dialog asking to save when you close a modified file when the title bar shows no asterisk?
Which actually seems all the more odd because it does get updated when you move the mouse, use the arrow keys (or other non-inserting keys like Alt+F4)
Re: Bug in Notepad Involving Asterisk in Title Bar
#44Re: Bug in Notepad Involving Asterisk in Title Bar
#45Earlier quoted context omitted.
Pressing the arrow keys on their own does nothing, but pressing DEL (no title update) then an arrow key does.
Huh (confirmed), trying to imagine that code path. Edit: Played around a bit, it's odd. For example then click on a different window (release focus) does trigger the update.
002A1272 P WM_KEYDOWN nVirtKey:VK_DELETE cRepeat:1 ScanCode:53 fExtended:1 fAltDown:0 fRepeat:0 fUp:0
002A1272 S EM_POSFROMCHAR wCharIndex:0
004E0A18 S WM_COMMAND wNotifyCode:EN_CHANGE wID:15 hwndCtl:002A1272
002A1272 P WM_KEYUP nVirtKey:VK_DELETE cRepeat:1 ScanCode:53 fExtended:1 fAltDown:0 fRepeat:1 fUp:1
002A1272 P WM_KEYDOWN nVirtKey:VK_RIGHT cRepeat:1 ScanCode:4D fExtended:1 fAltDown:0 fRepeat:0 fUp:0
002A1272 S EM_POSFROMCHAR wCharIndex:1
002A1272 S EM_GETMODIFY
004E0A18 S WM_SETTEXT lpsz:02EDCAF8 ("*Example.txt- Notepad")
The one that seems to get triggered the most, indeed the one triggering it here, is the code path that also updates the position indicator, hence why Del isn't doing anything. Interestingly enough, they seem to be ignoring the EN_CHANGE message, and instead looking for changes explicitly after some events. Given the long history of Notepad, I'm sure there's some historical reason for that.They do seem to be covering the bases checking for changes before anything that might lose data, like any path I can find to close the window, so it's a minor bug. They also check for changes on each and every mouse move message, so I think for most users, this state won't last long.
Re: Bug in Notepad Involving Asterisk in Title Bar
#46Re: Bug in Notepad Involving Asterisk in Title Bar
#47not asking to get into an app namedropping war, but do alot of ppl use Notepad still? Kind of moved away from it years ago due to encoding, lack of some features etc
Re: Bug in Notepad Involving Asterisk in Title Bar
#48not asking to get into an app namedropping war, but do alot of ppl use Notepad still? Kind of moved away from it years ago due to encoding, lack of some features etc
Re: Bug in Notepad Involving Asterisk in Title Bar
#49not asking to get into an app namedropping war, but do alot of ppl use Notepad still? Kind of moved away from it years ago due to encoding, lack of some features etc
Re: Bug in Notepad Involving Asterisk in Title Bar
#50Earlier quoted context omitted.
Huh (confirmed), trying to imagine that code path. Edit: Played around a bit, it's odd. For example then click on a different window (release focus) does trigger the update.
if(key !== KEY_DELETE) { testForChanges(); }