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 » ArrayCtrl, HeaderCtrl & GridCtrl » first row strange behaviour
first row strange behaviour [message #4048] Tue, 18 July 2006 12:55 Go to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
Hello,

I've an ArrayCtrl with an editint ctrl in column 4 build with
...
	arrp.AddColumn("Edit", t_("code"), 4).Ctrls(EditResult);  
...
void EditResult(One<Ctrl>& ctrl)
{
	ctrl.Create<EditInt>().MaxChars(1);
}


When I click on any row (not directly in the EditInt) the focus goes immediately in the EditInt ctrl. This is what I desire. So that I can intercept the keys of the keyboard and process the user input.
But when the very first click on the array begin with the row 0, the focus doesn't go in the EditInt. See picture:
index.php?t=getfile&id=186&private=0
To do it first I need to click some other row and then come back to the row 0.
Is this normal?

Why do not click directly inside the EditInt of row 0? Because I'm going to hide that column and the user is not aware of its presence. The EditInt is used only to get the input from the keyboard when the user has clicked a row of the arrayctrl.
Thank you,

Luigi
  • Attachment: v50_12.jpg
    (Size: 20.87KB, Downloaded 2049 times)

[Updated on: Tue, 18 July 2006 14:16]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: About GetClickRow() and GetCursor()
Next Topic: How set read-only state to a editable column?
Goto Forum:
  


Current Time: Mon May 13 22:42:39 CEST 2024

Total time taken to generate the page: 0.01881 seconds