Hi,
I was going over the notepad code, and it is implemented using richedit. My question is - why? There is no functionality there that is not also available through the usual Edit control. The Windows notepad is notoriously implemented via the edit control. Is there a special reason why our notepad is different here?
Shachar
"Shachar Shemesh" wine-devel@sun.consumer.org.il wrote:
I was going over the notepad code, and it is implemented using richedit. My question is - why? There is no functionality there that is not also available through the usual Edit control. The Windows notepad is notoriously implemented via the edit control. Is there a special reason why our notepad is different here?
Since we had no a way to display .wri and .rtf files provided by many applications (readme's, etc.) it was decided to simply extend notepad instead of creating a wordpad replacement from scratch.
I'm trying to revamp notepad a little. In particular, I'm trying to add the "select font" option to it. This is problematic under the RICHEDIT control, as each character there can, potentially, have it's own font.
In addition to that, I see such programs as an important tool to unit test various components (in this case - the edit control). As a result, I am wondering whether anyone minds renaming the current notepad to "wordpad", and letting me convert notepad back to EDIT, and add the missing stuff? I promise to get around to wordpad later on.
Shachar
Dmitry Timoshkov wrote:
"Shachar Shemesh" wine-devel@sun.consumer.org.il wrote:
I was going over the notepad code, and it is implemented using richedit. My question is - why? There is no functionality there that is not also available through the usual Edit control. The Windows notepad is notoriously implemented via the edit control. Is there a special reason why our notepad is different here?
Since we had no a way to display .wri and .rtf files provided by many applications (readme's, etc.) it was decided to simply extend notepad instead of creating a wordpad replacement from scratch.
"Shachar Shemesh" wine-devel@sun.consumer.org.il wrote:
I'm trying to revamp notepad a little. In particular, I'm trying to add the "select font" option to it. This is problematic under the RICHEDIT control, as each character there can, potentially, have it's own font.
In addition to that, I see such programs as an important tool to unit test various components (in this case - the edit control). As a result, I am wondering whether anyone minds renaming the current notepad to "wordpad", and letting me convert notepad back to EDIT, and add the missing stuff? I promise to get around to wordpad later on.
Personally I don't see the point of having two distinct applications with almost the same basic functionality. I'd suggest to have some flag in notepad which represents current text format and behave accordingly.
Something like this: If plain text - enable font selection menu item and change the whole text font. Otherwise, disable font selection at all.
Dmitry Timoshkov wrote:
"Shachar Shemesh" wine-devel@sun.consumer.org.il wrote:
I'm trying to revamp notepad a little. In particular, I'm trying to add the "select font" option to it. This is problematic under the RICHEDIT control, as each character there can, potentially, have it's own font.
In addition to that, I see such programs as an important tool to unit test various components (in this case - the edit control). As a result, I am wondering whether anyone minds renaming the current notepad to "wordpad", and letting me convert notepad back to EDIT, and add the missing stuff? I promise to get around to wordpad later on.
Personally I don't see the point of having two distinct applications with almost the same basic functionality. I'd suggest to have some flag in notepad which represents current text format and behave accordingly.
Something like this: If plain text - enable font selection menu item and change the whole text font. Otherwise, disable font selection at all.
I don't quite see it that way. Putting aside for a second the technical difficulties of changing the font for an entire RICHEDIT control, if you are going to display each character as a different color, you will need some means of selecting the color for each character. That's what an editor is all about. To me, the difference between notepad and wordpad is the difference between a text editor and a word processor. They are completely different products (albeit - wordpad is a pretty crappy word processor, and so not very useful).
Then again, I have failed to properly load RTF files in the wine notepad, or find anything else in which it is improved when compared to the windows notepad. What am I missing?
Shachar
"Shachar Shemesh" wine-devel@sun.consumer.org.il wrote:
I don't quite see it that way. Putting aside for a second the technical difficulties of changing the font for an entire RICHEDIT control, if you are going to display each character as a different color, you will need some means of selecting the color for each character. That's what an editor is all about. To me, the difference between notepad and wordpad is the difference between a text editor and a word processor. They are completely different products (albeit - wordpad is a pretty crappy word processor, and so not very useful).
Actually, we don't need a text processor at all. There are plenty of them around. We need a simple way of displaying plain text, .rtf and .wri files for users pressing "View ReadMe now" button. We even don't need a support for editing that files in full flavour of that word. Saving files in that formats is not a priority at all.
Then again, I have failed to properly load RTF files in the wine notepad, or find anything else in which it is improved when compared to the windows notepad. What am I missing?
A patch to improve the situation :-)
Dmitry Timoshkov wrote:
"Shachar Shemesh" wine-devel@sun.consumer.org.il wrote:
I was going over the notepad code, and it is implemented using richedit. My question is - why? There is no functionality there that is not also available through the usual Edit control. The Windows notepad is notoriously implemented via the edit control. Is there a special reason why our notepad is different here?
Since we had no a way to display .wri and .rtf files provided by many applications (readme's, etc.) it was decided to simply extend notepad instead of creating a wordpad replacement from scratch.
What's more, it seems the current notepad version does not load RTF files properly.
Am I missing something here?
Sh.
On Wednesday 06 Nov 2002 11:02 pm, Shachar Shemesh wrote:
I was going over the notepad code, and it is implemented using richedit. My question is - why? There is no functionality there that is not also available through the usual Edit control. The Windows notepad is notoriously implemented via the edit control. Is there a special reason why our notepad is different here?
AFAICS it doesn't exist to test how Wine behaves w.r.t. edit controls - you could always use MS's own version of notepad to test that. It seems to just be a bundled editor that runs in wine - better than notepad, different to wordpad, faster than emacs, and not as pretty as vim. Of course. ;-)
Cheers, Geoff