Welcome To Statua. Feel free to message any of our staff.
 
HomeFAQSearchRegisterLog in

Share | 
 

 How To make a simple notepad

View previous topic View next topic Go down 

Did you find this helpful?
Yes
100%
 100% [ 1 ]
No
0%
 0% [ 0 ]
Total Votes : 1
 

AuthorMessage
alex
Admin
Admin
avatar

Posts : 28
Points : 10048
Rep : 2
Join date : 2010-06-18
Age : 23
Location : uk

PostSubject: How To make a simple notepad   Sun Jul 04, 2010 6:50 am

How to make a fully functional notepad

For this tutorial i will be using Delphi 6 however if your using 7 it should be about the same places and names.

What you'll need on your form
-memo
-main menu
-save dialog
-open dialog


Standard -> Memo


Delete the text within the Memo

Type'File' Here

Next click the little box that pop's up under 'File' and type in this, 'New'
now type in this under 'New' , 'Open' then finally under 'Open'
type in 'Save' all without the '

now it should look like this:


Okay! now to add the Open and Save Dialog!


Now we have the interface we need to give the buttons functions!

Double click the 'New' button:
Quote :

memo1.clear;

Now click 'Open' and type in this:
Quote :

OpenDialog1.Execute;
memo1.Lines.LoadFromFile(OpenDialog1.Filename);

Ok now in 'Save' type in this:
Quote :

SaveDialog1.Execute;
memo1.Lines.SaveToFile(SaveDialog1.Filename);

You can now run your program using F9.
Dont forget to save as a project.


Hope you found it helpful Smile and dont forget to check back for more tutorials


Last edited by alex on Sun Jul 04, 2010 7:11 am; edited 1 time in total (Reason for editing : Wasn't complete)
Back to top Go down
View user profile http://statua.co.cc
 
How To make a simple notepad
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Simple Notepad Tutorial - C#
» How to make migraine patients happy!
» Ten Ways to Make Peace With the Past and Create a New Future
» How do I make the login popup show an Image, instead of it's bland colors
» can i make the poster details in the topic above the topic

Permissions in this forum:You cannot reply to topics in this forum
Statua :: Coding :: Delphi-
Jump to: