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 |
|
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:
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
|
|
|
|
|
ArrayCtrl cell consisting of edit and helper button
|
|
|
Re: ArrayCtrl cell consisting of edit and helper button
By: fudadmin on Wed, 19 April 2006 06:56
|
|
|
Re: ArrayCtrl cell consisting of edit and helper button
|
|
|
Re: ArrayCtrl cell consisting of edit and helper button
By: fudadmin on Wed, 19 April 2006 07:38
|
|
|
Re: ArrayCtrl cell consisting of edit and helper button
By: fudadmin on Wed, 19 April 2006 07:53
|
|
|
Re: ArrayCtrl cell consisting of edit and helper button
By: mirek on Wed, 19 April 2006 14:31
|
|
|
Re: ArrayCtrl cell consisting of edit and helper button
By: forlano on Sat, 06 May 2006 01:31
|
|
|
Re: ArrayCtrl cell consisting of edit and helper button
|
|
|
Re: ArrayCtrl cell consisting of edit and helper button
By: forlano on Sat, 06 May 2006 02:13
|
|
|
Re: ArrayCtrl cell consisting of edit and helper button
|
|
|
Re: ArrayCtrl cell consisting of edit and helper button
|
|
|
Re: ArrayCtrl cell consisting of edit and helper button
By: forlano on Sat, 06 May 2006 10:38
|
|
|
Re: ArrayCtrl cell consisting of edit and helper button
By: forlano on Sat, 06 May 2006 10:44
|
|
|
Re: ArrayCtrl cell consisting of edit and helper button
|
|
|
Re: ArrayCtrl cell consisting of edit and helper button
By: mirek on Sun, 07 May 2006 19:50
|
|
|
Re: ArrayCtrl cell consisting of edit and helper button
|
|
|
Re: ArrayCtrl cell consisting of edit and helper button
By: fudadmin on Wed, 19 April 2006 18:19
|
|
|
Re: ArrayCtrl cell consisting of edit and helper button
By: mirek on Wed, 19 April 2006 18:35
|
Goto Forum:
Current Time: Sat Jun 01 01:30:38 CEST 2024
Total time taken to generate the page: 0.01477 seconds
|