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++ Library : Other (not classified elsewhere) » Deactivate and Focus problem
Deactivate and Focus problem [message #4825] Wed, 23 August 2006 09:52 Go to previous message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

Hi!

I start with describing example:
There is droplist control which is child of arrayctrl. It is added as edit control to arrayctrl (arr.AddColumn().Edit(dl)).
After double clik on array row droplist is activated and ready to use. Now the problem. When I click drop button popup with items appears. If I select item or press ESC popup is closed and focus is restored in droplist (if DropFocus() method is used). But if I instead of selecting item or pressing ESC push the drop button again the focus is moved outside arrayctrl (or to other edit control) - not restored in droplist. This is wrong IMO.
The same situation is with my datetimectrl (and gridctrl or arrayctrl).
I tried to move focus back to edit control (parent of calendar) in Deactivate method:

void Calendar::Deactivate()
{
Close();
parent->IgnoreMouseClick();
parent->SetFocus()
}

but it didn't help. It seems that after calling Deactivate upp core engine move focus further, somewhere else.

If I call Deactivate() manually as a reaction on pressing ESC everything is ok, parent has focus.

Changing this is imprtant. If for example in array control you have edit for each column and after doubleclicking on row all controls are shown, you can move among them using tab key. But if one of that control is control with popup window and user press drop button and he press it again to close the popup he won't be able to move to the next edit with tab anymore.
Of course user can close popup with esc (if implemented) but IMO all "closing ways" should behave similar.

[Updated on: Wed, 23 August 2006 09:52]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: BUGFIX: Prompt() Does not correct size buttons
Next Topic: Polish translations
Goto Forum:
  


Current Time: Tue Jun 11 08:11:13 CEST 2024

Total time taken to generate the page: 0.01891 seconds