Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: Sun Jun 08 15:58:30 CEST 2025

Total time taken to generate the page: 0.05799 seconds