Win32lib questions
- Posted by George Henry <ghenryca at HOTMAIL.COM> Dec 03, 2000
- 722 views
What are some different ways to implement a "text viewing box" that the user can scroll through, but not modify? 1. EditText control, with an onKeyPress event handler that consumes all keystrokes that can affect the text in the control. Two problems I see with this are: a. I tried consuming all keystrokes inthe event handler, thus: procedure onKeyPress_EditDesc() returnValue(True) end procedure -- and this causes my program to crash, I haven't the faintest idea why. b. The user can stil paste text into the control. How can the ability to paste be disabled? 2. Label control, with associated scroll bars if necessary. Suppose I don't like the looks of a Label, and why should I have to write all the drudge code to format the text and do the scrolling? And here is a related question (actually, two questions, or a two-part question): Is it possible to word-wrap automatically in an edit box? Alternatively, is there a practical way to do it in code? I am at that stage of learning where I ask a lot of questions. Hope I am not perceived as a pest. Thanks, George Henry _____________________________________________________________________________________ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com