Guest_imported
New member
- Jan 1, 1970
- 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...
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...