Scalabium Software

SMExport advertising

Knowledge for your independence'.
Home Delphi and C++Builder tips


#76: How can I change a button caption in OpenDialog/SaveDialog?

Today I found a nice tip about changing the captions in standard dialogs (TOpenDialog or TSaveDialog).

By default the TOpenDialog have the two buttons: Open and Cancel. You can change this default value:

procedure TForm1.OpenDialog1Show(Sender: TObject);
begin
  SetDlgItemText(GetParent(OpenDialog1.Handle), IDOK, PChar('New &Open'));
  SetDlgItemText(GetParent(OpenDialog1.Handle), IDCANCEL, PChar('New &Cancel'));
end;


Published: May 5, 2000

See also
 
Clarion Viewer
Paradox Viewer
ABA Database Convert
Viewer for TNEF-files (winmail.dat)
Clarion to Text converter
Excel Reader (dll)
Excel Web-stream
dBase Viewer
Paradox to Text converter
SMMsg suite
 
 
Contact to webmaster

 

Borland Software Code Gear Scalabium Delphi tips

Copyright© 1998-2015, Scalabium Software. All rights reserved.
webmaster@scalabium.com

SMExport advertising