TButton in TEdit component


2007-03-18 03:41:18 PM
cppbuilder101
Hi all,
I have created a component from TCustomEdit, and I have insert a button:
void __fastcall TPddPathEdit::CreateWnd()
{
TCustomEdit::CreateWnd();
btn=new TButton(this);
btn->Parent =this;
btn->Align =alRight;
btn->Width =btn->Height;
btn->Caption="...";
btn->OnClick=btnClick;
}
But when the focus goes on my edit, I lost the refresh on my button (it
becomes white).
Can I avoid this effect?
Thanks