U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Is it possible to get Ctrl name during runtime (or similar)?
Re: Is it possible to get Ctrl name during runtime (or similar)? [message #13104 is a reply to message #13103] Tue, 11 December 2007 11:14 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
Is there any good reason why you can't just compare addresses?
Ctrl * focus = GetFocusCtrl();
if (focus == &edField1) {
// First EditString
}
else if (focus == &edField2) {
// Second EditString
}
else if (focus == &edField3) {
// EditInt
}
Or:
if (edfield1.HasFocus()) { // etc.

which is exactly the same.
 
Read Message
Read Message
Read Message
Previous Topic: PromptOK - little error in textselection
Next Topic: failure to use SOCKET and an exception question
Goto Forum:
  


Current Time: Mon May 11 05:36:02 GMT+2 2026

Total time taken to generate the page: 0.00550 seconds