Apr 12, 2010 07:50 AM
(This post was last modified: Nov 7, 2010 08:59 AM by djfshady.)
If you post this on another forum remember to give credits.
Hello there today ill show you how to make a simple notepad in delphi.
what you will need:
1 memo
1 mainmenu
1 save dialog
1 open dialog
ok let's begin, first off place a memo which is found here:
[IMG]http://i41.[censored].com/w8m3yh.jpg[/IMG]
now to delete memo1 text inside the box click memo1 and now click list then remove the text/add some text then click ok:
[IMG]http://i42.[censored].com/10sc51k.jpg[/IMG]
on your form, after that go add in a mainmenu which will be found here:
[IMG]http://i40.[censored].com/erylus.jpg[/IMG]
after that double click the mainmenu.
Type in 'File' here:
[IMG]http://i39.[censored].com/htzi47.jpg[/IMG]
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:
[IMG]http://i40.[censored].com/34z14zo.jpg[/IMG]
ok now add in a savedialog and opendialog which can be found here:
[IMG]http://i40.[censored].com/e5hfzo.jpg[/IMG]
ok now for the Coding:
double click 'New' and type in this
Now click 'Open' and type in this:
Ok now in 'Save' type in this:
Your application should look like/similar to this:
[IMG]http://i42.[censored].com/nly628.jpg[/IMG]
There you have it :) a simple notepad now press this to test your application:
[IMG]http://i39.[censored].com/29pyvqo.jpg[/IMG]
Or you can go here:
[IMG]http://i40.[censored].com/531rnl.jpg[/IMG]
Or you can simply just press F9
The result Of the program will be similar to this:
[IMG]http://i43.[censored].com/19tfm9.jpg[/IMG]
Credits:
djfshady - me
Hope you liked my tutorial :)
Hello there today ill show you how to make a simple notepad in delphi.
what you will need:
1 memo
1 mainmenu
1 save dialog
1 open dialog
ok let's begin, first off place a memo which is found here:
[IMG]http://i41.[censored].com/w8m3yh.jpg[/IMG]
now to delete memo1 text inside the box click memo1 and now click list then remove the text/add some text then click ok:
[IMG]http://i42.[censored].com/10sc51k.jpg[/IMG]
on your form, after that go add in a mainmenu which will be found here:
[IMG]http://i40.[censored].com/erylus.jpg[/IMG]
after that double click the mainmenu.
Type in 'File' here:
[IMG]http://i39.[censored].com/htzi47.jpg[/IMG]
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:
[IMG]http://i40.[censored].com/34z14zo.jpg[/IMG]
ok now add in a savedialog and opendialog which can be found here:
[IMG]http://i40.[censored].com/e5hfzo.jpg[/IMG]
ok now for the Coding:
double click 'New' and type in this
Code
memo1.clear;Now click 'Open' and type in this:
Code
OpenDialog1.Execute;
memo1.Lines.LoadFromFile(OpenDialog1.Filename);Ok now in 'Save' type in this:
Code
SaveDialog1.Execute;
memo1.Lines.SaveToFile(SaveDialog1.Filename);Your application should look like/similar to this:
[IMG]http://i42.[censored].com/nly628.jpg[/IMG]
There you have it :) a simple notepad now press this to test your application:
[IMG]http://i39.[censored].com/29pyvqo.jpg[/IMG]
Or you can go here:
[IMG]http://i40.[censored].com/531rnl.jpg[/IMG]
Or you can simply just press F9
The result Of the program will be similar to this:
[IMG]http://i43.[censored].com/19tfm9.jpg[/IMG]
Credits:
djfshady - me
Hope you liked my tutorial :)



![[Image: moonlight_sanctuary.png]](https://moonlight-sanctuary.org/images/moonlight_sanctuary.png)

![[Image: 320x50.gif]](https://ddfnmo6ev4fd.cloudfront.net/dynamic-banners/320x50.gif)