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 » ArrayCtrl cell consisting of edit and helper button
Re: ArrayCtrl cell consisting of edit and helper button [message #3086 is a reply to message #3085] Sat, 06 May 2006 10:44 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1187
Registered: March 2006
Location: Italy
Senior Contributor
forlano wrote on Sat, 06 May 2006 10:38

fudadmin wrote on Sat, 06 May 2006 02:58

try this: Smile
void EditLabel::WriteLabel()
{
	lbl.SetLabel( AsString(~edit) );
	SetFocus();
	edit.SetFocus();
	edit.SetSelection(edit.GetLength());
}

btw, why do you use a label and not a button?



Thanks!
Everything work perfectly. Your improvements automatically include a feature that I wanted: each time I pressed the TAB key the focus pass to the next editint.
I need a label to show the match result [1-0], [0-1] etc..., while in the editint I enter their short code 1, 0, and so on.

Let me ask you (this is a good moment for it) what is the difference between deriving from TopWindow and CtrlParent. It seems the second one is better for embedded widget in that it merge better with the around widget. While the first one seems more indicate for indipendent widget like dialog. Is it correct?

BTW, can you add two words for the tricky row:
	edit.SetSelection(edit.GetLength());

without it I can't enter more than one char.

Luigi

[Updated on: Sun, 07 May 2006 21:07]

Report message to a moderator

 
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: ArrayCtrl with enabled/Disabled columns
Next Topic: how to set/get data in a composite embedded ctrl in an arrayctrl
Goto Forum:
  


Current Time: Sat Jun 01 01:30:38 CEST 2024

Total time taken to generate the page: 0.01477 seconds