1. Ready Only MLE

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

new topic     » topic index » view message » categorize

2. Re: Ready Only MLE

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: Ready Only MLE

> 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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu