PDA

View Full Version : SUNotepad - a StartUp Notepad



EvilChicken!
07-19-2009, 12:06 PM
SUNotepad!Current version: 2.1


This is a basic notepad with tabs, designed to start up at the same time as Windows, and load previously entered data, like a digital post-it note.



Any suggestions for add-ons or improvements will be appreciated.




v1.32 - 3 August
v2.0 - 17 August
v2.1 - 18 August

kingarabian
07-19-2009, 12:42 PM
Very nice! I guess its like microsoft word's autosave? Will download as soon as I get access to my pc...

EvilChicken!
07-19-2009, 12:46 PM
Thanks :)
Though, it really couldn't get much simpler than this.

Main point of this application is to load saved text at windows startup.
Not really sure how to explain it in another way, just try it and you'll understand.

ShowerThoughts
07-19-2009, 02:47 PM
Make it add himself to the registry...

Wizzup?
07-19-2009, 06:48 PM
Make it add himself to the registry...

Why?

EvilChicken!
07-19-2009, 10:00 PM
Why?

To start simultaneously with Windows, I suppose.


Hermen; thanks for the great suggestion, I experimented with it and achieved that, I have to say that it would be a great feature to have -- but I really don't want to mess with people's registries. Plus, I think that's even illegal here at SRL.

Still, rep++ for the idea. :)



By the way, who approved my life? O:

caused
07-19-2009, 10:07 PM
Where does this save everything on the hdd ?_? // Does this automaticly safe after input is done ?

If this works, how your describing it, thats a pretty neat idea : D very usefull!..

Could you add a tray feature please : D?

EvilChicken!
07-19-2009, 10:17 PM
Where does this save everything on the hdd ?_? // Does this automaticly safe after input is done ?

If this works, how your describing it, thats a pretty neat idea : D very usefull!..

Could you add a tray feature please : D?

It saves everything to AppPath, which is the location of the program.
If you're using it the way I intended to, I'd reccomend you to hide it somewhere where it doesn't take up desktop space and add a shortcut to it in your start menu. And ofcourse, copy the shortcut to the 'startup' folder.

It will autosave input when you close the application if the AutoSave option is enabled. That means, if you've checked the "Save when Closed" option in the "Options" menu. If autosave isn't enabled, you'll get a popup when you close it, asking whether you'd like to save changes or not.

Also, you can manually save by pressing Ctrl + S.



Thanks for the idea of a tray feature, never realized how useful it might be.
Will definitely add it right now.

caused
07-19-2009, 10:21 PM
Thanks for the idea of a tray feature, never realized how useful it might be.
Will definitely add it right now.


That would be great =).

Could you also add a feature, that autosaves,(ie.) 5 seconds after input has been done ?

So.. If your system crashes you still got all your data.

~caused

EvilChicken!
07-19-2009, 10:35 PM
Haha, saw your post just as I uploaded the new version. Atleast I got implemented a tray icon. (Click it to minimize/maximize SUNotepad, depending on the application's windowstate.)

I'll do the autosaving after input feature, but this time I'll wait until I have a bit more suggestions so I could implement them all at once.
Still, thanks! :)

Dan Cardin
07-19-2009, 11:44 PM
so you meant it to be some sort of note taking application? Which it would be pretty nifty to use as one. /me tries it out.

EDIT: you might want to make the test area automatically resize to the size of the form. Then you would just turn off autoscroll on the form to only have 1 scrollbar.

caused
07-20-2009, 01:13 AM
Haha, saw your post just as I uploaded the new version. Atleast I got implemented a tray icon. (Click it to minimize/maximize SUNotepad, depending on the application's windowstate.)

I'll do the autosaving after input feature, but this time I'll wait until I have a bit more suggestions so I could implement them all at once.
Still, thanks! :)

Great =).. Once you've implemented that, i'll definately use it.

More Suggestions, if you dare ;) :

- Right Click on Tray Icon enables a "QuickNote" Function, where only a small box appears at the tray icon, which closes after input has been done, and 5 seconds passed or the window becomes inactive (user activated another window).... It's good if you just want to quickly save a link or so..

- Make the textfield resize with the window-size.

- An Goto Line feature

- Search feature

- File -> Exit

- Start Minimized in tray

~caused

ShowerThoughts
07-20-2009, 02:12 AM
Add multiply tabs ;)
Hmm!
Use a ini file to save the tab names then the tab names will have .txt files under those names like <TabName[1[>.txt and then when you click on a tab it will be loaded :).
Nice one?

Add me to msn Hermen Otter @ live . nl

Cazax
07-20-2009, 02:37 AM
Nice :) Some suggestions:
- Use the Align property of the text component you are using to auto resize it when the form change its width and height.
- Add tabs
- Auto save when the form crashes (use the Form1.OnDestroy event :)) like FireFox does.

I like the Syntax highlighter. I was making a Notepad too but more complex(with underline, bold and italic checkboxes, buttons to change the font and the font color, save the size of the form for future runs, reopening option in the main menu (that's a good idea for your's), and many other features) but I got tired of it :p I never finish my applications.

Good luck!

EvilChicken!
07-21-2009, 12:01 AM
EDIT: you might want to make the test area automatically resize to the size of the form. Then you would just turn off autoscroll on the form to only have 1 scrollbar.

I had that feature in an earlier version of this, which somehow got deleted. This is going to be the first thing I'll implement, or "re-add".
Thanks.


- Right Click on Tray Icon enables a "QuickNote" Function, where only a small box appears at the tray icon, which closes after input has been done, and 5 seconds passed or the window becomes inactive (user activated another window).... It's good if you just want to quickly save a link or so..

Will defietly do this, and all of your other suggestions.
Thanks a big lot!


Add multiply tabs ;)
Hmm!
Use a ini file to save the tab names then the tab names will have .txt files under those names like <TabName[1[>.txt and then when you click on a tab it will be loaded :).
Nice one?

I had an unfinished tab system in the version which got deled. Which, now that you reminded of, took me some time. Bah, two-three wasted hours. =__=

Anyway, I'll try to re-add tabs, but it will be a low priority for now, as I have a lot other suggestions which are both more useful and less time-consuming.

And, the tab system would use the INI file in a way quite similar to what you describe, it would simply store a record of the tabs and their content.

And, if you want to, why don't you add my MSN?
I'm not at home, and I don't have access to MSN. My adress is in my profile.


Nice :) Some suggestions:
- Use the Align property of the text component you are using to auto resize it when the form change its width and height.
- Add tabs
- Auto save when the form crashes (use the Form1.OnDestroy event :)) like FireFox does.

I like the Syntax highlighter. I was making a Notepad too but more complex(with underline, bold and italic checkboxes, buttons to change the font and the font color, save the size of the form for future runs, reopening option in the main menu (that's a good idea for your's), and many other features) but I got tired of it :p I never finish my applications.

Good luck!

Thanks for your input.

As I previously stated, this was meant for private use only, which is why it's not complex at all.

I like all your suggestions, especially regarding the OnDestroy. I didn't know about that. :)




List over features I'll be adding, based on your input:

QuickNote feature, suggested by caused
SynEdit field alligns with form on app resize
Tabs (?)
Form1.OnDestroy: Save1Click;
CTRL+G = Goto line command
CTRL+F = Find command
Option to start minimized in tray
File -> exit
Save form position&size to INI file & load at app startup
List of recently opened files in Mainmenu (?)

Daniel
07-21-2009, 06:57 PM
Erm, Windows Vista Sidebar/Windows 7 gadgets much?

:p

But nice work though, for more legacy versions of software ;)

EvilChicken!
07-24-2009, 01:58 PM
Version 1.2 released!

Containing:
- QuickNote feature, suggested by caused. Rightclick the tray icon to get a small window where you with swiftness and ease can paste a note or two. The window will automatically disappear after 10 seconds of no activity, or when you close it.
- SynEdit field now autoalligns with the main form when you resize the application.
- Form1.OnDestroy: Save1Click; handy if it ever crashes.
- Pressing CTRL+G gives you the "Go to line" command window, CTRL+F brings out the "Find" command window and CTRL+R will show the "Replace" command window.
- Option to start minimized in tray.
- File -> exit
- It now saves form position & size to the INI file & loads the data at application's startup
- The application autosaves text content in the SynEdit text field every 60 seconds, for those of you afraid of loosing data :)



Comments?

nielsie95
07-24-2009, 05:47 PM
I can't drag the form?
Other than that it's looking good.

EvilChicken!
07-24-2009, 05:54 PM
I can't drag the form?
Other than that it's looking good.

Hahah, didn't know that, thanks for poining that out.
Tell me, when you rightclick the tray icon, does a small 'quicknote' form pop up?

I just figured out that it doesn't for me. I don't really know why, as it was doing doing so perfectly fine on my computer at home -- and it's frustrating, as I probably won't be able to fix it before I get back home in two-three days.

nielsie95
07-24-2009, 05:59 PM
Yes, quicknote seems to work :)

ShowerThoughts
07-24-2009, 06:17 PM
I said I wasn't going to download it...
*Downloads*
Nah not going to use it :(.

ian.
07-24-2009, 06:48 PM
I said I wasn't going to download it...
*Downloads*
Nah not going to use it :(.

Why don't you wanna use it?

caused
07-27-2009, 12:46 AM
Suggestions:
The Quicknote feature should be where the Tray Icon is.
The QuickNote Feature should be ontop of everything.

The Quicknote feature didnt showup the second time i tried to open it =)...

~caused

Smartzkid
07-27-2009, 08:54 AM
I like it!

Ditto caused, I'm having the same problems with quicknote.
A close to tray option would be nice, too!

EvilChicken!
07-30-2009, 12:16 PM
Thanks all for the replies.

I currently have this fixlist; sorry for it maybe being gibberish, those notes were just quickly scribbled down when I got those ideas.

I'll try to fix all the things listed below when I get home today, in a couple hours.
I'd apprishiate it if anybody else had more suggestions for other improvements or addons. :)


SUNotepad add-on suggestions:
- To-do-list
- Add support for plug-in widgets to customize it?
- Tabs
- SCAR script that could get and store data to
SUNOTEPAD using tags, and "String := Between(, )
- Separate options for:
> Enabling/disabling gutter
> Enabling/disabling autointending
> Enabling/disabling syntax highlighting
> Making one's own custom syntax highlighter with colors ect.
> Ability to save and load it.
> UNTO CTRL+Z
> PASTE CTRL+V
> Minimize to tray: CTRL + M
> Tell that "ALT" is shortcut for browsing mainmenu.
------------- Find out what CRTL+Y does.
> "About" menu with contact info.
- Add possiblity to add shortcuts into menu:
> New MenuItem "Shortcuts" containing shortcuts to .exe's
launched by jvCreateProcess.
> Possibility to create subcategories like "scripts" ect.
and store shortcuts there.
> Possibility to add hotkey shortcuts for shortcuts.
- Add "if (not Saved) then Save();" at Timer1.
- Fix QuickNote.
- Make the appIcon a sun?
- TReplace: OnReplaceAll; CaretPos := 0 THEN ReplaceAll;
- Ability to turn on/off 60sec autosaving
> Customize how often to autosave.
- Remove "SUNotepad" in GoToLine Form.
- Make form moveable!

EvilChicken!
08-03-2009, 08:56 AM
New version, changelog here for convinience.



Changelog for version 1.3:
- Minimize to tray: CTRL + M
- Mainmenu shortcuts for
- Undo: CTRL + Z
- Redo: CTRL + Y
- Cut: CTRL + X
- Copy: CTRL + C
- Delete selected text: Del
- Select all text: CTRL + A
- Added functionality to "Home" and "End" key.
- Customizing options for the gutter:
- Show/hide
- Show/hide linenumbers
- Supposedly fixed QuickNote, please report any errors you might experience with it.
- All forms fade out when closed.
- Made all forms moveable.
- Added ability to enable/disable form fading.
- One option simply enables/disables SCAR syntax now, nothing else.

Laimonas171
08-03-2009, 10:38 AM
this one is very nice. i like, line numbers. just left side should be shorter for 5 - 6 digits only. plus i liked fadeout on exit. but you should do setting to disable it (sometimes it can really anoying ) REP++

EvilChicken!
08-03-2009, 10:43 AM
this one is very nice. i like, line numbers. just left side should be shorter for 5 - 6 digits only. plus i liked fadeout on exit. but you should do setting to disable it (sometimes it can really anoying ) REP++

Thank you. :)

Although, there is a setting for disabling the fade effects, does't it work?
Go to "Options" and uncheck "Fade Forms".

By the way, working on a version which can modify the registry to start at every windows bootup, gonna restart my computer to see if it's working now.

Edit: Laimonas171, download version 1.3 to get all available features, please. :)

Ogre
08-03-2009, 10:56 AM
The SCAR syntax isn't working for me, I click it but it doesn't show the syntax, and the option is still unchecked.

EvilChicken!
08-03-2009, 12:00 PM
Version 1.32 released!

By the way, thank you very much Ogre.


SUNotepad v1.32 (1.3.5.1) changelog:
- Added option to start SUNotepad at every Windows startup. To enable this feature,
simply click "Options", then tick "Run SUNotepad at Startup".
- The application also checks if you've moved it since the last time you used it,
and updates the registry if needed.

- Fixed SCAR syntax enabling/disabling, thanks to Ogre.
- Also fixed gutter options.

- Oh, also forgot to mention that since previous version, SUNotepad now comes with a new icon.

Ogre
08-03-2009, 12:36 PM
Version 1.32 released!

By the way, thank you very much Ogre.


SUNotepad v1.32 (1.3.5.1) changelog:
- Added option to start SUNotepad at every Windows startup. To enable this feature,
simply click "Options", then tick "Run SUNotepad at Startup".
- The application also checks if you've moved it since the last time you used it,
and updates the registry if needed.

- Fixed SCAR syntax enabling/disabling, thanks to Ogre.
- Also fixed gutter options.

- Oh, also forgot to mention that since previous version, SUNotepad now comes with a new icon.

You're welcome :)

Also, it works now, but the syntax is on when it's not checked, and it is off when it is checked, I wasn't sure if that was how you wanted it, because it seems the other options are kind of the opposite.

Pointing that out just in case ;)

EvilChicken!
08-03-2009, 11:59 PM
You're welcome :)

Also, it works now, but the syntax is on when it's not checked, and it is off when it is checked, I wasn't sure if that was how you wanted it, because it seems the other options are kind of the opposite.

Pointing that out just in case ;)

Thanks a lot, I just found out I had put "Checked := not Checked;" at the END of the OnClick procedure instead of the beginning. Fixed in 1.33, though I'll wait until I add more fixes/features, not going to release new version because of such a small bug.

Anyway, thank you again.
Rep+.

caused
08-04-2009, 12:58 AM
QuickNote still does not work :D.. Right Click doesnt seem to open it... Also the Quicknote Window Position should be bottom right above the taskbar =)...

If you dont know how to do that, check out the source of my 2chat app ;)

~caused

Dan Cardin
08-04-2009, 12:18 PM
quicknote should take focus when made. It would be nice if it were smaller, or saved its size (idk if it already saves its size), and if there was a button or something to manually close it instead of waiting

other than those, small things i think i shall just always have it open for note taking.

Laimonas171
08-04-2009, 05:52 PM
Thank you. :)

Although, there is a setting for disabling the fade effects, does't it work?
Go to "Options" and uncheck "Fade Forms".

By the way, working on a version which can modify the registry to start at every windows bootup, gonna restart my computer to see if it's working now.

Edit: Laimonas171, download version 1.3 to get all available features, please. :)

oh sorry i do not see options :o i will check v1.3

EvilChicken!
08-05-2009, 02:11 AM
QuickNote still does not work :D.. Right Click doesnt seem to open it... Also the Quicknote Window Position should be bottom right above the taskbar =)...

If you dont know how to do that, check out the source of my 2chat app ;)

~caused

Thanks a lot, I'll look into it, as I said in the other thread. :)
By the way, you're either very special, or you've got the wrong version running. :p I mean, it worked for Nielsie even before this update (don't really know how, as by I found out by looking over the source once more, the QuickNote window is to be positioned to 800, 1200.. Oh, I see now.
While typing this, I came to realization that I've made the embarrassing error of coding it to simply appear by fixed coordinates, not taking screen resolution into consideration. I'll be sure to fix that in 1.33, thank you very much.



quicknote should take focus when made. It would be nice if it were smaller, or saved its size (idk if it already saves its size), and if there was a button or something to manually close it instead of waiting

other than those, small things i think i shall just always have it open for note taking.

It does save it's size whenever you resize it, yes.
And, there should be a button for closing it?

caused
08-05-2009, 03:48 AM
Actually Chrome was infront of the QuickNote Window o_o. You should try quicknote.FormStyle:=fsStayOnTop; ;).

~caused

EvilChicken!
08-05-2009, 04:00 AM
Actually Chrome was infront of the QuickNote Window o_o. You should try quicknote.FormStyle:=fsStayOnTop; ;).

~caused

You know, the weirdest thing about that is that I've always had it as fsStayOnTop. I have no idea why it still goes behind other apps.

caused
08-05-2009, 04:09 AM
Hmn thats weird.. You may try the winAPI to find the window and get it on top... If that doesnt work, im out of ideas without the sauce xD..

~caused

EDIT: Tested it Again. Quick NOte works perfectly, when the Main Window is Open, but not when its minimized to tray, then the QUick Note wont open as well(its just minimized in the taskbar). So I guess you messed something up there :'D..

EvilChicken!
08-18-2009, 03:01 AM
Version 2.0 released!

About everything of significance has been rewritten, some features added -- and a couple nasty bugs removed. Take a look! :)

And, I removed about everything of what was in the first post. If anybody could care to write a description of this program for me to put in the first post, I'd be really grateful.

Harry
08-18-2009, 03:30 AM
nyoro~n :) Nice program, EC!, keep it up :D

inb4 "VIRUS SCAN PLX",
epic~ (http://virusscan.jotti.org/en/scanresult/89d8a12fba444dba86f9a69bd7262ea01fac2e40)

It even runs fine under WINE. I am surprised. Takes a little while to launch, but it works and looks fine with ALL FEATURES, as far as I can see :)
Only problem (do not know if it happens under native Windows) is it takes ~20 seconds to launch :| Not a big problem, just annoying a bit. Other than that, amazingly epic.


Video of me using it under WINE (at 40 seconds, it is because I spamclicked the icon in the tray :3, at 2:15 I realized I did not save any tabs so I reopened): http://ifile.it/qwk7nyd




tl;dr EPIC.

ShowerThoughts
08-18-2009, 04:44 AM
Version 2.0 released!

About everything of significance has been rewritten, some features added -- and a couple nasty bugs removed. Take a look! :)

And, I removed about everything of what was in the first post. If anybody could care to write a description of this program for me to put in the first post, I'd be really grateful.

Obivious all other program want the focus to, if a program does something later then your program it wants the focus itself... so repeat it everytime you want that your program keeps the attention.

Dan Cardin
08-18-2009, 07:42 AM
its kinda wierd.

I quite dislike the new tab looks.
-minimize to tray, then unminimize doesn't save settings like showing the gutter.
-must be in tab to close it
-cant close tabs where you haven't opened a file.
-truncate the file names earlier than you do, they end up taking up too long space.
-you don't need a status bar

Overall it may do more, but i liked the simplicity before, without any toolbar stuff and with less complicatedness.

EvilChicken!
08-18-2009, 12:07 PM
Minor update to 2.1, fixed two bugs and changed tab style.
Re-download recommended.




Only problem (do not know if it happens under native Windows) is it takes ~20 seconds to launch :|

First of all; thanks. :)

I believe WINE is to blame for the slow startup time. This application uses INI file reading/writing commands quite a bit, it might be that WINE doesn't deal with INIs too well.


Obivious all other program want the focus to, if a program does something later then your program it wants the focus itself... so repeat it everytime you want that your program keeps the attention.

From what I understood, you're saying I updated the program just so it would get more attention?


its kinda wierd.

I quite dislike the new tab looks.
-minimize to tray, then unminimize doesn't save settings like showing the gutter.
-must be in tab to close it
-cant close tabs where you haven't opened a file.
-truncate the file names earlier than you do, they end up taking up too long space.
-you don't need a status bar

Overall it may do more, but i liked the simplicity before, without any toolbar stuff and with less complicatedness.

You're right, the flat buttons do look ugly. I changed the pagecontrol to using tsTabs for now, but I'll look more into owner drawing and see if I can come up with a more appealing GUI.

The "cant close tabs where you haven't opened a file."-issue is more that you can't really close any other tab than the last one. This was because I couldn't be bothered creating a record of the tab positions, and then saving and loading them et cetera.

And, that it only closes active tab was because I simply used "PageControl.ActivePage" instead of switching to the selected tab. But, I'll look into this for the next version, thanks.

And, I fixed the truncating bug in 2.1.

Dan Cardin
08-18-2009, 08:59 PM
And, that it only closes active tab was because I simply used "PageControl.ActivePage" instead of switching to the selected tab. But, I'll look into this for the next version, thanks.No, you dont have to switch to the tab. You can find out which tab is being right clicked on and put your options according to that.