Friday, October 5, 2007

How to do programming with the OpenDialog

How to do programming with the OpenDialog

To do programming with the OpenDialog

Step 1

To do programming with the OpenDialog, first, you need to double click the Open File button.

Step 2

After that, it will display a Code Explore window and you just need to enter the programming inside it.

Step 3

Program:

procedure TForm1.FileOpenClick(Sender: TObject);

begin

with OpenDialog1 do

if Execute then

Begin

Memo1.Lines.LoadFromFile(FileName);

Caption:='Open the File'

+ExtractFilename(FileName);

End;

end;

end.

How to work with the OpenDialog

How to work with the OpenDialog

To work with the OpenDialog

Step 1

To work with the OpenDialog, the first thing you need to do is to add the Button, Memo and OpenDialog in the Form. The Button1 properties is Name: FileOpen, Caption: Open File.

Example:

Step 2

Next, in the OpenDialog properties, you need to click the Filter option and in the Filter Editor type int.

How to set the device of the FontDialog

How to set the device of the FontDialog

To set the device of the FontDialog

Step 1

To set the device of the FrontDialog, first, you need to move the mouse to the Dialog object toolbar and then select the FontDialog object that you want to add in the form.

Step 2

Next, the FontDialog object is added in the form.

Step 3

After that, you have to move the mouse to the Object Inspector window and find the Device in the Properties tab. Finally, enter the new title.


How to set the Title of the SaveDialog

How to set the Title of the SaveDialog

To set the Title of the SaveDialog

Step 1

To set the title of the SaveDialog, first move the mouse to the Dialog object toolbar and then select the SaveDialog object you want to add in the form.

Step 2

Next, you抣l see that the SaveDialog object is being added in the form.

Step 3

After that, you need to move the mouse to the Object Inspector window and then find the Title in the Properties tab. Finally, enter the new title.

->