Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SetFocus() doesnt respond..why?

Status
Not open for further replies.

Guest_imported

New member
Joined
Jan 1, 1970
Messages
0
Hi..
A small problem...i send a notification message to my main window everytime a user clicks once within an edit box..in the handler for the event, i have a SetSel(0,-1) and SetFocus()..(coz i want to select all the text)..however when the program actually runs..nothing happens when i click in the box...also if i replace SetFocus() with Clear() or Cut(), it works prefectly fine..i.e clicking in the edit box immediately cuts/clears away all the text...any idea why setFocus() won't respond..? Going crazy with this one..seems simple but just doesn't yield to anything...


 
To help, I should see Your handler.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top