Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 221
  • Last Modified:

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
0
Markbf
Asked:
Markbf
1 Solution
 
CesarioCommented:
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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now