1. Ready Only MLE
- Posted by bensler at mail.com Jan 17, 2002
- 444 views
Another Q... I know how to make the MLE read_only, and non-TABable, but but the MLE can still be selected with the mouse. Focus is then given to the MLE, and it displays the caret position. I don't want the MLE to be able to receive focus at all. I've tried trapping onGotFocus, and setting the focus to the default ctrl, but it doesn't work. In fact, as a result of setting the focus to the default ctrl, I'm not able to select that control anymore. I've also tried trapping the onMouse event, and Left button events aren't reported to the handler. And even so, I'm still not able to set the focus to the other ctrl. TIA Chris
2. Re: Ready Only MLE
- Posted by Euman <euman at bellsouth.net> Jan 17, 2002
- 424 views
I wish I was up to speed on Win32lib in this catagory. Have you tried EnableWindow? Euman euman at bellsouth.net Q: Are we monetarily insane? A: YES ----- Original Message ----- From: <bensler at mail.com> > Another Q... > > I know how to make the MLE read_only, and non-TABable, but but the > MLE can still be selected with the mouse. Focus is then given to the > MLE, and it displays the caret position. I don't want the MLE to be able > to receive focus at all. > > I've tried trapping onGotFocus, and setting the focus to the default > ctrl, but it doesn't work. In fact, as a result of setting the focus to > the default ctrl, I'm not able to select that control anymore. > > I've also tried trapping the onMouse event, and Left button events > aren't reported to the handler. And even so, I'm still not able to set > the focus to the other ctrl. > > TIA > Chris
3. Re: Ready Only MLE
- Posted by "Thomas Parslow (PatRat)" <patrat at rat-software.com> Jan 18, 2002
- 442 views
> Another Q... > I know how to make the MLE read_only, and non-TABable, but but the > MLE can still be selected with the mouse. Focus is then given to the > MLE, and it displays the caret position. I don't want the MLE to be able > to receive focus at all. > I've tried trapping onGotFocus, and setting the focus to the default > ctrl, but it doesn't work. In fact, as a result of setting the focus to > the default ctrl, I'm not able to select that control anymore. > I've also tried trapping the onMouse event, and Left button events > aren't reported to the handler. And even so, I'm still not able to set > the focus to the other ctrl. > TIA > Chris Wouldn't a LText control be better here or did you want the user to still be able to copy text from it? Thomas Parslow (PatRat) ICQ #:26359483 Rat Software http://www.rat-software.com/ Please leave quoted text in place when replying