Board index » cppbuilder » Change the button text in OpenDialog

Change the button text in OpenDialog


2007-09-13 07:27:08 PM
cppbuilder7
Hi,
Is there a way to change the text of the "Open" button in OpenDialog to "Locate"
Thanks in advance
Rob
 
 

Re:Change the button text in OpenDialog

"rob kemp" < XXXX@XXXXX.COM >wrote in message
Quote
Is there a way to change the text of the "Open" button in OpenDialog to
"Locate"
Yes. In the OnShow event, call the CommDlg_OpenSave_SetControlText()
function, ie:
void __fastcall TForm1::OpenDialog1Show(TObject *Sender)
{
CommDlg_OpenSave_SetControlText(GetParent(OpenDialog1->Handle),
IDOK, "Locate");
}
Gambit