Chang to Button Caption in TOpenDialog

Hello Experts,

I use tOpendialog to select a file which I whant to convert...
Is it possible to change the Caption of the open Button to "convert"

TIA

Mark
MarkbfAsked:
Who is Participating?
 
CesarioConnect With a Mentor Commented:
Hi,


1) add to your uses clause to Commdlg unit
2) Add TOpenDialog1.OnShow Event
3) Add This Code

procedure TForm1.OpenDialog1Show(Sender: TObject);
begin
  SendMessage(GetParent(OpenDialog1.Handle), CDM_SETCONTROLTEXT, 1,
                               Integer(PChar('convert')));
end;

good luck

Cesario
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.