We help IT Professionals succeed at work.

Can't get focus on TCustonComponent

PPaul
PPaul asked
on
I'm making a component that I would like to draw a bow around when it has focues. how do I get it to have focus if I have to put it in my self and why dosn't the TCustomControlI have started now dosn't have focus. From what I can tell TCustonControl is to have it automaticly. (need code to learnb from...
Comment
Watch Question

BRONZE EXPERT
Top Expert 2004

Commented:
are you sure that you don't get a focus?
maybe you should show a bit code you have
Commented:
do this

drop 2 pannels (not on top of eachother)
drop component (memo) on pannel 1
drop your component on pannel 2
now click,on memo,on your component..

Author

Commented:
Hi God Ares
I've tried the suggestion you just stated befor comming here and it dosn't take the focuse away from the memo. :(

I can show you the paint Procedur. I want it to draw a box around it's self when focused. or is there a way that I can up load the component code to you. if so here is my e-mail address

eltech@onlink.net

Thanks
PPaul

Explore More ContentExplore courses, solutions, and other research materials related to this topic.