A notepad-like class...
-
Hi, I would like to display and edit a text (a simple multi-line text) from a file like notepad does. Is there an easy-to-use class somewhere? I was told I should use an edit-box control, but this seems a bit complicated... I have to implement all the serialization stuff and so on and I might not implement it in an efficent way. Thanks for any help :)
-
Hi, I would like to display and edit a text (a simple multi-line text) from a file like notepad does. Is there an easy-to-use class somewhere? I was told I should use an edit-box control, but this seems a bit complicated... I have to implement all the serialization stuff and so on and I might not implement it in an efficent way. Thanks for any help :)
Mr.Freeze wrote: I was told I should use an edit-box control, but this seems a bit complicated... I have to implement all the serialization stuff and so on and I might not implement it in an efficent way. There is no ready made class, and it would be counter efficient for one to exist, because it would constrain you too much. Serialisation is easy - SetWindowText and GetWindowText to pass to the CEdit and a CFile or fstream, it's only three lines of code to store or retrieve the text in question. You also need to set the multiline property of the CEdit, or you'll only get one line of text. Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
-
Mr.Freeze wrote: I was told I should use an edit-box control, but this seems a bit complicated... I have to implement all the serialization stuff and so on and I might not implement it in an efficent way. There is no ready made class, and it would be counter efficient for one to exist, because it would constrain you too much. Serialisation is easy - SetWindowText and GetWindowText to pass to the CEdit and a CFile or fstream, it's only three lines of code to store or retrieve the text in question. You also need to set the multiline property of the CEdit, or you'll only get one line of text. Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002