Re: Edith (wish list)
- Posted by Ian Burleigh <igb at HOME.COM> Dec 28, 1998
- 449 views
>source code I do not plan to release the source soon; I feel that it would be premature. I yet have to see where Edith is heading. She has a mind of her own -- think of it as of "The Taming of The Shrew" or "Pygmalion". However, I will gladly answer questions, with code snippets where appropriate. >how did you do the main text window? Edith registers a window class with a callback window procedure (the only one that Euphoria allows), creates a main overlapped window and a child window with scrollbars (the text view). Windows messages are dispatched to the right window, including optional modeless dialogs. The child window originally handled WM_ERASEBKGND and WM_PAINT; now only WM_PAINT is handled and the code in a standard Windows way both paints the background with brushes and pens and writes the text. In addition, while editing the text, after each keystroke Edith redraws the current line directly without going through InvalidateRect() and WM_PAINT. Ian