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 » Community » Newbie corner » Focus problem
Re: Focus problem [message #57807 is a reply to message #57806] Sat, 18 December 2021 17:17 Go to previous messageGo to previous message
Lance is currently offline  Lance
Messages: 656
Registered: March 2007
Contributor
Hi Silvan:

That might be what you need to do.

Unless the Ctrl (in your case, ImageCtrl) has an overrided Key which allow you to assign a WhenKey callback etc where you can do a per-instance tailoring.

A Event/Gate is a member variable and is pretty expensive if U++ just randomly provide one for all possible events(like the WhenSuspiciousKey I defined for the MainWindow class). So not every Ctrl defined an WhenKey event. There might be something one can do on the libary level to make it both convenient and not unnecessarily expensive on memory cost, but for now, what you have done is right. If not sure, Ctrl-Left click into ImageCtrl class definition to verify there is no member event like WhenKey, or see it has the Key virtual function overrided at all.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to output variable values with time stamp in windows application
Next Topic: Clang linker error: no such file or directory
Goto Forum:
  


Current Time: Sun Aug 24 06:59:08 CEST 2025

Total time taken to generate the page: 0.04283 seconds