H
huzb
Unregistered / Unconfirmed
GUEST, unregistred user!
Hi
I had read and try
<a href="http://www.devexpress.com/dxforum/view.asp?ArticleID=284">How to Focus a Row after a Certain Row is Edited</a>
That is OK.
But when I try do this with dxTreeList, it's fail.
I just change or add these lines:
void TFormAddress::FindNode()
{
...
Node->MakeVisible();
Node->Focused = true;
PostMessage( this->Handle, CM_FOCUSENODE, 0, (long)(dxTreeList1->FocusedNode));
}
void TFormAddress::CMFocuseNode(TMessage &Message)
{
((TdxTreeListNode*)Message.LParam)->Focused = true;
//TForm::CMFocuseNode(Message);
}
The rectangle or highlight not show.
When I add
dxTreeList1->SetFocus();
before or after "POST...", the rectangle move to next node but highlight not move to next node.
And when I do a increment search in dxTreeList with a TEdit, I can't write
dxTreeList1->SetFocus();
How can I show the rectangle or highlight on match node?
Thanks.