Statua
Would you like to react to this message? Create an account in a few clicks or log in to continue.


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

 

 How To make a simple notepad

Go down 

Did you find this helpful?
Yes
How To make a simple notepad Vote_lcap100%How To make a simple notepad Vote_rcap
 100% [ 1 ]
No
How To make a simple notepad Vote_lcap0%How To make a simple notepad Vote_rcap
 0% [ 0 ]
Total Votes : 1
 

AuthorMessage
alex
Admin
Admin
alex


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

How To make a simple notepad Empty
PostSubject: How To make a simple notepad   How To make a simple notepad Icon_minitimeSun 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

How To make a simple notepad Untitl10
Standard -> Memo

How To make a simple notepad 10sc5112
Delete the text within the Memo

Type'File' Here
How To make a simple notepad 10sc5112
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:
How To make a simple notepad 34z14z10

Okay! now to add the Open and Save Dialog!
How To make a simple notepad E5hfzo11

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
http://statua.co.cc
 
How To make a simple notepad
Back to top 
Page 1 of 1
 Similar topics
-
» Lets make Random thread home of the Anon

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