Gena01.com Forum

Software Development => Win32Pad => Topic started by: Gena01 on May 17, 2006, 09:04:10 pm



Title: Win32Pad 1.5.10
Post by: Gena01 on May 17, 2006, 09:04:10 pm
Please report feedback on Win32Pad 1.5.10 in this thread.

Please please check for any regressions and report any problems/bugs you find.

Thank you.

Gena01


Title: Win32Pad 1.5.10
Post by: milch-extra on May 18, 2006, 02:38:19 am
Ahoi,
the "not wanted feature" I found in the version 1.5.9.1 and report it in 1.5.9.1 thread is still in 1.5.10:

The "Delete Line" function avalible from the "Edit" menu or by pressing "Ctrl-Y" doesn't only delete the line, it cut out the line.
What does that matter? Maybe you have this text:

1 bla
2 Gennady is a smart guy!
3 bla
4 Who is a smart guy?
5 President Bush is a smart guy!
6 bla

If you read it you like to paste "Gennady is a smart guy!" on the right line. So you copy (or cut) line 2. Before you insert it you delete the wrong statement in line 6 with the "Delete Line" function. Afterwards you like to insert the text you've copied before. But what happens?! The stupid guy is still the smart guy!

Oke, it's a daffy example but it should be easy to realize that it would be a real problem if you like to insert a copied phrase into a long programcode. By scrolling down you find a line that should be deleted and you do this.
Than this line would be in your clipboard but not the text you thought!

So I would classify this as a not wanted feature. Maybe it would be even more a bug?

Can you confirm this issue?

Thank you for your great program and viel Freude :)

Bernhard


Title: Win32Pad 1.5.10
Post by: on May 18, 2006, 02:46:49 pm
I have three ideas:

1. Add the option to put the date and time in both ways using hotkeys, one for time first then date, the other for date then time.

2. Add how many lines there are in a file in the statusbar. As it is, you have to scroll to the end of the file to see how many there are. Like so: Ln: 1/200 (line 1 of 200).

3. An option to let users add a few characters to insert using hotkeys, like HTML tags or lines or whatever they want. (like in metapad, this is called quick buffer) As it is, you have to use insert file.


Title: Win32Pad 1.5.10
Post by: henrik on May 19, 2006, 01:42:49 am
Quote (Guest @ May 18 2006,21:46)
1. Add the option to put the date and time in both ways using hotkeys, one for time first then date, the other for date then time.

Wouldn't it in that case make more sense to have a customizable time/date stamp? E.g. yyyy-mm-dd hh:MM or what ever you want. I guess that people would like to have different settings anyway.


Quote (Guest @ May 18 2006,21:46)

3. An option to let users add a few characters to insert using hotkeys, like HTML tags or lines or whatever they want. (like in metapad, this is called quick buffer) As it is, you have to use insert file.

Maybe use something like Scintilla uses, abbrivations. That is you type in the text img and hits a hotkey. The program then check to see if there is any of that text in the list. E.g. <img src="|"> where | is where the cursor should be after the replace.


Title: Win32Pad 1.5.10
Post by: on May 19, 2006, 10:15:03 am
Henrik: A customizable time/date stamp would be cool, but in some cases, I like the time-date stamp as it is, but would just like one of the two reversed without having to change it in the options.

As for the Scintilla thing, I have never used it, but the abbreviations sounds a little different from the quick buffers in metapad. Scroll to Advanced 2 and read about quick buffers.


Title: Win32Pad 1.5.10
Post by: therube on May 19, 2006, 12:07:52 pm
Unicode :).

Not that I would necessarily use it in the composition of a file, but XP uses it quite often for a lot of their .ini .log ... files.

Now you can open/read them "properly" without needing to use Notepad.


Any things we should be looking for in particular relating to Unicode?

Like if a file opens as Unicode, but should not be, or?


Title: Win32Pad 1.5.10
Post by: Gena01 on May 19, 2006, 02:13:44 pm
Quote (therube @ May 19 2006,13:07)
Unicode :).

Not that I would necessarily use it in the composition of a file, but XP uses it quite often for a lot of their .ini .log ... files.

Now you can open/read them "properly" without needing to use Notepad.


Any things we should be looking for in particular relating to Unicode?

Like if a file opens as Unicode, but should not be, or?

Well for now it has an auto-detect in place for Unicode. So it should read/write Unicode properly. You can also Save any text file as Unicode.

I was actually thinking of extending things a little bit and adding an option to select a CodePage via dropdown. Maybe a few more little fixes for the next release.

Gena01


Title: Win32Pad 1.5.10
Post by: on May 21, 2006, 02:53:52 am
Win32Pad is absolutely perfect! Every feature that should be in a Notepad replacement is there, and everything that shouldn't be isn't. Don't give in to feature bloat -- if people want all kinds of crazy features, they can use vim or emacs or whatever. 51 KB rules!


Title: Win32Pad 1.5.10
Post by: on May 22, 2006, 02:21:12 pm
I have a few more ideas about features to add to Win32Pad:

1. An option to have the statusbar stats where the users want them: left/center/right.

2. Word counting.

3. And make file paths (C:\Program Files\Win32Pad\) clickable like the URLs are.


Title: Win32Pad 1.5.10
Post by: jmaloney on May 23, 2006, 07:42:13 pm
I love Win32pad and I've been using it as my html editor for 2 or 3 years. I love it's smallness, the fact that it uses an ini instead of the registry, and the fact that it looks good with a black background and white text.

There's one thing it does that drives me crazy though. It uses the eight-character DOS file name instead of the long file name. I always run Win32pad by right clicking a file in Explorer, selecting Send To, and picking Win32pad. Win32pad shows the DOS file name in the title bar and when I click Save As it uses the DOS file name in the file name field too. The first six characters followed by ~ and a digit are not enough for me to know which file I'm editing. I use Win98SE.

Thanks for a great program!

Jon Maloney


Title: Win32Pad 1.5.10
Post by: freeboy on May 24, 2006, 04:04:21 am
我(I)希望(hope)支持(support)中文(chinese text) to 会好(better)一点

当(when)复制(copy)中文(chinese)时会出现(happen) "text convsion" 错误( error)

我(I)非常(very )喜欢(like) 它(it)!


Title: Win32Pad 1.5.10
Post by: therube on May 25, 2006, 11:34:57 am
@jmaloney
Quote

I always run Win32pad by right clicking a file in Explorer, selecting Send To, and picking Win32pad. Win32pad shows the DOS file name in the title bar and when I click Save As it uses the DOS file name in the file name field too. ... I use Win98SE.

I do not see that.

I'm running WinXP.
I created a Shortcut to Win32pad.exe in my SendTo directory.
The Target: (in my case) is C:\BIN\win32pad.exe
(Note I do not use %1 or anything like that in the target, solely the path to win32pad.)

Right-click a file, SendTo Win32pad.
File opens.
Long filename displays in the title bar.
File | Save As also displays the long filename.

So, check your shortcut, make sure it looks ok.
Only other thing I can think of, is maybe it has something to do with your version of RICHED20.DLL?
Quote

In particular, if you are running Win98, you might check your version of RICHED20.DLL.  Older versions can cause problems.

In XP, I have Richedit Version 3.0, File version 5.30.23.1221.
On 98, I have Richedit Version 3.0, File version 5.30.23.1200.


Title: Win32Pad 1.5.10
Post by: jmaloney on May 25, 2006, 12:18:11 pm
therube: Thanks for your comments.

Before I posted the problem I installed the latest riched20.dll. It made no difference. I'm using Rich Text Edit Control v. 3.0, file version 5.30.23.1200.

My shortcut in Send To is nothing special:
"C:\Program Files\Win32Pad\win32pad.exe"

After I posted I ran a test to see if the problem is unique to Win32pad. It isn't. When I right-click on an image file in Explorer and Send To Adobe Photoshop, the Photoshop title window shows the DOS file name too. So the problem probably has nothing to do with the way Win32pad is coded. Win32pad is probably just using whatever Windows passes it. The problem may be a never-corrected oversight when Windows implemented long file names. Perhaps the right-click menu code in Win98SE was never updated to accommodate long file names. I'm just guessing. I was hoping it was a problem that Win32pad could correct, since I have the problem many times a day.

Jon Maloney


Title: Win32Pad 1.5.10
Post by: jmaloney on May 25, 2006, 02:38:06 pm
I've done some more research on the problem I reported of Win32pad using the short file name when a file is passed to it via the right-click "Send To" menu in Win98SE.

There's a thread in Google Groups that addresses the Send To problem of using the short name here http://tinyurl.com/qjd9j. The posters say the Send To works differently for Notepad, Wordpad, and MS Works, which indicates it's the code in the application program rather than in Windows. One poster said the problem seems to occur in old C++ programs.

I found another clue here on the Crystal Impact site:  http://tinyurl.com/pxe5a
Someone asks if the long file name can be preserved in Diamond when the Send To option is used. The answer says, "The 8.3-name conversion when using "Send To" is caused by rather "old-fashioned" run-time library code containing in version 2.x of Diamond. It will be removed in the Diamond 3 version. (On Windows 2000, this works already correct with the current Diamond version.)"

I found a Microsoft Knowledge Base article that acknowledges the problem in Wordpad, here:
http://support.microsoft.com/kb/q171857/

So the problem of Send To converting long file names to short file names appears to be something the application controls rather than Windows.

However, therube above reported that Send To in Win XP preserves the long file name in Win32pad. That's a clue, but I don't know what it means.

Anyway, perhaps this post will help Gennady get a handle on the problem.  

Jon Maloney


Title: Win32Pad 1.5.10
Post by: therube on May 25, 2006, 03:33:10 pm
Looks like you're right.
I loaded up Win98 & here's what I found:
Code Sample

             Title Bar   Save As
            ---------      -------
Win32pad    SFN         SFN
VIM           Long        Long
Notepad     Long        SFN
Wordpad     SFN         SFN
Word         Long        Long

SFN = Short filename
Long= Long filename


Title: Win32Pad 1.5.10
Post by: Gena01 on May 26, 2006, 09:08:50 pm
Quote (therube @ May 25 2006,16:33)
Looks like you're right.
I loaded up Win98 & here's what I found:
Code Sample

             Title Bar   Save As
            ---------      -------
Win32pad    SFN         SFN
VIM           Long        Long
Notepad     Long        SFN
Wordpad     SFN         SFN
Word         Long        Long

SFN = Short filename
Long= Long filename

Ok I looked into this. There's some API that need to be called to get the proper long filename support. Apparently there's a wrapper for Windows 95 which doesn't have support for it. Windows 98 and later should have it. I have put together a beta build for you to test:  Win32Pad Beta Build

Let me know if it works for you.

Thank you,

Gena01






Title: Win32Pad 1.5.10
Post by: jmaloney on May 26, 2006, 10:51:37 pm
The beta works fine for me on Win98SE. I tried it with short file names and long file names -- with no spaces, with spaces, and up to 60 characters long with spaces. All my tests worked for both the title bar and the Save As field.

I'm impressed. Thank you Gena01!

Jon Maloney


Title: Win32Pad 1.5.10
Post by: jmaloney on May 27, 2006, 12:42:13 pm
I've just discovered a problem related to pasting from the clipboard. I wrote an email in Eudora, copied it to the clipboard, pasted it into Win32pad, and got only a square symbol followed by a B. I pasted the same clipboard contents into MS Word, Programmer's File Editor, Notepad, and Wordpad and they all worked fine. I tested the problem in Win32pad 1.5.10 beta (the one to fix long file names) as well as the non-beta version. Both versions had the same problem.

I thought perhaps it was something weird in Eudora that the other editors were properly converting, but that Win32pad couldn't handle. So I pasted into Notepad and then copied the Notepad contents and pasted them into Win32pad. I only got the square B again.

Then I tested the same paste in Win32pad 1.5.9.1 and it worked fine.  

Jon Maloney
Win98SE


Title: Win32Pad 1.5.10
Post by: Gena01 on May 27, 2006, 07:45:51 pm
Quote (jmaloney @ May 27 2006,13:42)
I've just discovered a problem related to pasting from the clipboard. I wrote an email in Eudora, copied it to the clipboard, pasted it into Win32pad, and got only a square symbol followed by a B. I pasted the same clipboard contents into MS Word, Programmer's File Editor, Notepad, and Wordpad and they all worked fine. I tested the problem in Win32pad 1.5.10 beta (the one to fix long file names) as well as the non-beta version. Both versions had the same problem.

I thought perhaps it was something weird in Eudora that the other editors were properly converting, but that Win32pad couldn't handle. So I pasted into Notepad and then copied the Notepad contents and pasted them into Win32pad. I only got the square B again.

Then I tested the same paste in Win32pad 1.5.9.1 and it worked fine.  

Jon Maloney
Win98SE

Ok. A couple of things first:
1. Which font are you using in Win32Pad? Did you try a Unicode font like Arial?
2. Can you e-mail me the piece of text that you used so I could reproduce it on my end?

Thank you,

Gena01


Title: Win32Pad 1.5.10
Post by: jmaloney on May 28, 2006, 08:53:27 am
Gena01,

I'm using Arial in both Win32pad and Eudora.

The problem occurs with any text I copy to the clipboard from Eudora (mail I'm writing, mail I've sent, or mail I've received). The paste works properly in Win32pad 1.5.9.1 and not in 1.5.10.1.

I have not found a way to save the clipboard as a file without the text being altered in a way that solves the problem. If I paste text from Eudora into Notepad or Programmers File Editor, copy that text into the clipboard again, and then paste into Win32pad, all I get is a square B. However, if I first save the text from Notepad or PFE as a file, open the file in Notepad or PFE, copy it, and paste it to Win32pad it works fine. So whatever's in the clipboard that's causing the problem is fixed when the text is saved as a file and then read again.

My Eudora text is "styled text". The manual says styled text is HTML. If I try to paste it into MS Word using Paste Special, Word shows me three options:  Formatted Text (RTF), Unformatted Text, and HTML Format, but if I paste it into Word using the HTML option nothing gets pasted. If I select either of the other two options the text gets pasted properly.

It looks to me like Win32pad 1.5.9.1, Notepad, and my other editors automatically convert the "styled text" from the clipboard to unformatted text, but Win32pad 1.5.10.1 doesn't.

I'm writing this post in Eudora which I'll email to you and paste into the forum. Any text I copy from this mail into Win32pad causes the problem.

Jon Maloney


Title: Win32Pad 1.5.10
Post by: on May 29, 2006, 08:35:48 pm
Hello,

...sorry...duplicate post from other thread...should have put this here....


I just wanted to bring a possible bug to your attention...When I try to install and run Win32Pad v1.5.10 either from the .zip or .exe I get the following message:

"Fatal Error - Error While loading DLL unicows.dll - The Application Will Terminate Now"

 FYI - running win98 -

Also just download and tried the previous version - The problem does NOT occur on the v1.5.9.1

so....corrupt file on server?

just thought you would want to know....

also....any thoughts?

Thanks,
__
Mark Farrar


Title: Win32Pad 1.5.10
Post by: Gena01 on May 29, 2006, 09:24:34 pm
Quote (Guest @ May 29 2006,21:35)
Hello,

...sorry...duplicate post from other thread...should have put this here....


I just wanted to bring a possible bug to your attention...When I try to install and run Win32Pad v1.5.10 either from the .zip or .exe I get the following message:

"Fatal Error - Error While loading DLL unicows.dll - The Application Will Terminate Now"

 FYI - running win98 -

Also just download and tried the previous version - The problem does NOT occur on the v1.5.9.1

so....corrupt file on server?

just thought you would want to know....

also....any thoughts?

Thanks,
__
Mark Farrar

You need to install unicows.dll on Windows 98 since 98 doesn't support some of the API that I am using. I am trying to make as much progress as possible without breaking stuff, but in order for me to do so I need to switch to some new API which some older platforms do not support. Trust me that this is not an easy task to do if I need to consider backwards compatibility. At this point in time I am sticking to some functionality provided by unicows.dll. Please let me know if there's still a problem after installing unicows.dll

Gena01


Title: Win32Pad 1.5.10
Post by: MWFarrar on May 30, 2006, 09:18:38 am
Interesting....

I have unicows.dll on the system already (in support of other apps)...that is why I thought your download files may be corrupted.  The .dll is currently in a default location.  Is it that your program looks for the .dll in a specific place?  Does it need to reside with the .exe for Win32pad?  ...that will be my next try.  As I said...didn't even try that...just assumed that your code looked in the default windows directory.  ..oops...my bad.]

I'll let you know...will try it later today when I get home...

thanks...

M Farrar


Title: Win32Pad 1.5.10
Post by: therube on May 30, 2006, 01:23:37 pm
I also run Eudora (v6.2).

I do not appear to have any pasting difficulties (into Win32pad 1.5.10), though I am running WinXP rather then Win98.


Title: Win32Pad 1.5.10
Post by: therube on May 30, 2006, 01:29:51 pm
Quote
I have unicows.dll on the system already

Just guessing, but possibly related to the version of unicows.dll?

See my post in the other thread:
http://www.gena01.com/forum....=4;t=91


Title: Win32Pad 1.5.10
Post by: MWFarrar on May 30, 2006, 06:59:02 pm
Problem solved...thanks.

I put unicows.dll in the target intallation directory and everything works now.  I waspreviously operating under the assumption that unicows.dll should be in the "quasi default" windows location.  It appears that when you wrote the program, you intended for the code to look for the .dll in its local directory instead ???

anyway...that seems to work just fine!

thanks for the help.....great program!

M Farrar


Title: Win32Pad 1.5.10
Post by: jmaloney on May 30, 2006, 07:18:28 pm
Quote
I put unicows.dll in the target intallation directory and everything works now.  I waspreviously operating under the assumption that unicows.dll should be in the "quasi default" windows location.  It appears that when you wrote the program, you intended for the code to look for the .dll in its local directory instead ???


Interesting. I'm on Win98SE, have unicows.dll in C:\Windows\System (and not in the Win32pad directory), and Win32pad 1.5.10.1 works fine.

Jon Maloney


Title: Win32Pad 1.5.10
Post by: MWFarrar on May 30, 2006, 08:19:24 pm
acutally...just tried that too....

yes...it does work just fine in \windows\system OR in the target install directory for the application.

What I was trying to do was use the .dll directly from the \windows directory....my bad....just a goof...

it appears that at least 5 other apps on my machine use this unicows...each one has placed it in a separate place...interesting...

anyway...YES...  /windows/system IS the correct answer....thanks for the all for the help!

M Farrar


Title: Win32Pad 1.5.10
Post by: MWFarrar on May 30, 2006, 08:21:58 pm
Another Question...different topic...

I just got this app up and working and I really like the features....but one option seems to be missing from the help file...

can anyone tell me what checking "smart home" does?

...it is under tools-options-editor

thanks.

M Farrar


Title: Win32Pad 1.5.10
Post by: therube on June 01, 2006, 07:19:49 pm
Home normally returns the cursor to column #1.
Smart home returns the cursor to the first non-whitespace character on a line.
.
123456789*123456789*
hi there you swine.
       hi there you swine.
.

Home would take you to column number 1 on both lines above.
Smart home would take you to column number 1 on the first line, & column number 7 on the second line.
Also with Smart home, hitting Home a second time will take you back to column #1.


Title: Win32Pad 1.5.10
Post by: on June 02, 2006, 06:01:59 am
@JWFarrar (on your previous topic),

Was the directory "C:\WINDOWS\System" in your PATH environment variable?
If not, add it to the existing string in your Environment table, rename the copy of unicows.dll you placed in the target directory you used for installing win32pad.

See if it functions properly this way. If not, just restore the fiilename for unicows.dll.
If it does work you can probably do without all those local copies op the dll.


Title: Win32Pad 1.5.10
Post by: Robert on June 02, 2006, 06:15:14 am
@milch-extra (on using Ctrl-Y)

This key combination is used for Cut operations in a lot of (code) editors.
So I should hope that Gena01 will leave this functionality as it is.

For the correct use of this functionality, just
 - cut out the text you want (using Ctrl-Y; advantage, you don't need to select the text when cutting an entire line of text :D),
 - then select the text you want to replace
   (you can hold down the Shift key to select multiple characters, words and/or lines;
    this works while using the mouse as well as while pressing any arrow, home, page up/down or end key),
 - and finally you just paste the cut text over it (using Ctrl-V).


Title: Win32Pad 1.5.10
Post by: MWFarrar on June 02, 2006, 02:07:32 pm
For the individual who explained "Smart Home"...thanks...appreciate the help

as for others who have written back on the unicows.dll issue...

Yep...this was just my goof...nothing more.  Other programs on my machine use this .dll and each one stores it in the target install directory for the associated application.  I for some reason had it in my head that the default location for system .dll s was /windows instead of /windows/system ...my bad.  The environemnt variables are set ok...and...once I put it in windows/system, everything works fine.  As a note...yes...it will ALSO work if you just put it in the directory along with Win32Pad.exe....either is fine...

again...thanks for the responses and the help...

to GENA01....great program....it does all the things that I wanted notepad to do!


Title: Win32Pad 1.5.10
Post by: jmaloney on June 06, 2006, 07:28:45 pm
Last night I discovered another example of pasting text into Win32pad and just getting a square symbol followed by a capital B. I ran a virus scan using the current version of BitDefender 9 Standard. At the end of the scan I clicked the Show Report button in BitDefender, which automatically loads the report into Notepad. I wanted to read the report in Win32pad instead of Notepad, so I selected the report in Notepad, copied it to the clipboard, and pasted it into Win32pad. All I got was a square B. I just thought I should post this to show that the problem isn't limited to pasting text from my old version of Eudora. BitDefender offers a 30-day trial version, so anyone who wants to could probably duplicate this problem (assuming it's not due to the fact that I'm running Windows 98 SE).

Jon Maloney


Title: Win32Pad 1.5.10
Post by: Metalbrain on June 09, 2006, 04:40:48 am
Character ALT+0173 is still invisible in this version.


Title: Re: Win32Pad 1.5.10
Post by: alaa on December 03, 2008, 03:30:18 pm
Quote from:  link=topic=134.msg984#msg984 date=1148051703
<font color='#000000'>Henrik: A customizable time/date stamp would be cool, but in some cases, I like the time-date stamp as it is, but would just like one of the two reversed without having to change it in the options.

As for the Scintilla thing, I have never used it, but the abbreviations sounds a little different from the quick buffers in metapad. <a href="http://liquidninja.com/metapad/faq.html#Q9">Scroll to Advanced 2</a> and read about quick buffers.</font>