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 » HasFocus and popup widnows
HasFocus and popup widnows [message #9155] Thu, 19 April 2007 14:41 Go to next message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

I think HasFocus() should return true for control with opened popuped widnow. For example if DateTimeCtrl/DropList is embeded in arrayctrl and you open calendar/item list the color of active array row become different (unfocused). This is wrong and very annoying for user.
I think the best solution is to make HasFocus virtual and let the user define returned value in more complicated cases.
Re: HasFocus and popup widnows [message #9156 is a reply to message #9155] Thu, 19 April 2007 14:56 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14260
Registered: November 2005
Ultimate Member
Maybe better HasFocusDeep?

Mirek
Re: HasFocus and popup widnows [message #9157 is a reply to message #9156] Thu, 19 April 2007 15:11 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

luzr wrote on Thu, 19 April 2007 08:56

Maybe better HasFocusDeep?
Mirek

If you're talking about making HasFocusDeep virtual I still think HasFocus is a better choice. Once you get it the HasFocusDeep will be automaticaly also working properly.
Re: HasFocus and popup widnows [message #9160 is a reply to message #9157] Thu, 19 April 2007 16:41 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14260
Registered: November 2005
Ultimate Member
unodgs wrote on Thu, 19 April 2007 09:11

luzr wrote on Thu, 19 April 2007 08:56

Maybe better HasFocusDeep?
Mirek

If you're talking about making HasFocusDeep virtual I still think HasFocus is a better choice. Once you get it the HasFocusDeep will be automaticaly also working properly.



No, I was just speaking about makeing it return 'true' if widget owns an active popup Smile

This makes sense as you have to use HasFocusDeep there anyway (because it is "embedded" widget that has in fact the focus).

Mirek
Re: HasFocus and popup widnows [message #9164 is a reply to message #9160] Thu, 19 April 2007 17:59 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14260
Registered: November 2005
Ultimate Member
See changelog. Seems to fix the problem.

Mirek
Re: HasFocus and popup widnows [message #9166 is a reply to message #9164] Thu, 19 April 2007 19:50 Go to previous message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

luzr wrote on Thu, 19 April 2007 11:59

See changelog. Seems to fix the problem.
Mirek

Thanks! Works great!
Previous Topic: how is the WindowProc of DHCtrl working?
Next Topic: Private members in Switch used in Paint
Goto Forum:
  


Current Time: Sun Jun 01 15:55:27 CEST 2025

Total time taken to generate the page: 0.02005 seconds