Page 1 of 2 12 LastLast
Results 1 to 25 of 26

Thread: Scar Notepad!

  1. #1
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default Scar Notepad!

    Scar NotePad!

    This is like Notepad except with more features.
    Features
    • Open/Save/New/Save All/Revert
    • Reopen
    • Tabs
    • Cut/Copy/Paste
    • Find
    • syntax highlighting (by Nielsie95)
    • able to change font/color/size/etc
    • a sliding bar
    • unlimited undo/redo
    • text styles (bold, italic, etc)
    • text colors and fonts


    To Do
    • replace
    • add more languages to syntax highlighting
    • basic Code Complection (finishes [,(,{, and ' )
    • Auto indenter
    • very basic script debugger (counts begin, end, repeat, until and makes sure basic syntax is right)


    Changelog for 1.4
    2008/09/25
    * fixed: Reopen tab (Owner)
    * added: menu icons (Owner)
    * added: semiworking Export as HTML (Owner)
    * fixed: open/save ini stuff (Owner)

    2008/09/22
    * cleaned: Click procedure (Owner)
    * added: font picking menu (Owner)
    * added: contextual popups (Owner)

    2008/09/21
    * removed: popout (Administrator)
    * added: color preview in color formatting submenu (Administrator)
    * added: Formatting options. (Administrator)
    * changed: Changed Main Menu over to TMainMenu (Administrator)
    * cleaned: Turned a bunch of procedures into one (Administrator)
    Changelog:

    2008/08/26
    * added: rearrangeable tabs

    2008/08/21
    * added: Select All and Delete to richedit popup
    * fixed: right click popup for richedit

    2008/08/20
    * fixed: reopen menu
    * changed: split into two scripts to avoid coding confusion
    * added: Find Next button
    * added: Select All button
    * added: Delete button
    * fixed: mover movement
    * added: latest action (on statusbar at the bottom)
    * fixed: SaveOpenNew procedure
    * added: saved latest used file type for saving and opening
    * added: saved initial directory for saving and opening

    2008/08/19
    * added: Go To Line

    2008/08/18
    * added: Duplicate Tab
    * changed: Mainmenu structure

    2008/08/15
    * fixed: open/save paths
    * added: FullScreen
    * cleaned: InitForm code
    * added: open multiple files at once
    I am open to any suggestions people may have and please post if you find a bug
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  2. #2
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    It's very nice

    Why not change the buttons at the top to a real menu?
    Also, you can change that fake separator line thingy you made on the right click to just -, and it will be a real separator

  3. #3
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No it won't because it's a panel .

  4. #4
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    cuz that takes time and i dont feel like it. I also like my version of mainmenu better . though i have no clue what you mean by fake seperator on the right .

    EDIT: but apparently since whatever you're talking about is a panel you're wrong!
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  5. #5
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    I was talking about the right click menu. Change line 2016 to 3 : item[jk].Caption := '-'; and you'll see

  6. #6
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    O, yea nvm i know that

  7. #7
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    thanks, didnt know that any suggestions anyone?
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  8. #8
    Join Date
    Jul 2007
    Location
    Players[CurrentPlayer].Loc:='Bank'
    Posts
    875
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wow. How long did it take you to make all of that?
    Quote Originally Posted by sirlaughsalot
    .... Obama had the devil jump out of his ass, run and stab Hillary in the back...
    ILMMTYAEAFHPY.

  9. #9
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    ive been making it on and off for like 4 months , if i had stuck to it the whole time and knew all of what i know now then it it probably wouldve take waaay shorter. (this is really my first useful form, i made another one before this but it was very simple and had no purpose )
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  10. #10
    Join Date
    Dec 2007
    Posts
    372
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Haha, I like to see tools like this using scar. Looked cool

  11. #11
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    i fixed the error you'd get if you were to not download the script, and i made the right click menu work how it was supposed to(i forgot in v1). I also added some other things(right click the tabs and you get a popup, and basically the same options, in the file menu(SaveAll doesnt work yet, nor does Close all, i just thought i would fix the saving issue first ).

    oh, and i assume you'd get errors on my previous version with images because i didnt give you the images , so i updated it so that you'd get the newest version, with the images too . Ill probably make it so that you can choose whether to use images or not, because making the version seperate then fixing it for the images is getting annoying .

    anyways, thats about it, hope you like it
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  12. #12
    Join Date
    Feb 2006
    Location
    Belgium
    Posts
    3,137
    Mentioned
    3 Post(s)
    Quoted
    5 Post(s)

    Default

    OMG! [Error]: Access violation at address 00401FDC in module 'scar.exe'. Write of address 00000095 Sumbody halp meh!!!

    EDIT:
    Hmm, it kinda blew up in my face The version with images wouldn't load the images and crashed and the version without images wouldn't open files and such...

    (Btw, that error was produced by one of my gone bad experiments, do'nt worry about it )

  13. #13
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    sorry about the long wait in updating(not that this has gotten enough attention for anyone to care ) but ive been doing other things

    well i've just uploaded my newest version. It is like 100 lines shorter, in addition to all of the additions ive made. The main-menu and mover are now put into records(got rid of like 500 lines of code). That basically makes it easier for me to update and add stuff and eventually for you to be able to add buttons to your mover. I have a basic undo/redo system that doesnt work yet , and syntax highlighting that should work but doesnt for some reason . As far as i know, everything else should work. So be happy.

    Only reason i posted now, is because the errors i have are quite vexing and i cant seem to get them to work. That means that it'll either be a while in fixing or if someone else figures it out then it'll be much shorter.

    EDIT: i was silly and left out the onkeydown event in my editing . So now you have working syntax highlighting
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  14. #14
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    That's pretty kool, but one thing I noticed (in ScarNotePadv1.2(experamental)2.scar) is under the tools option, you have an extra spot for something, there's two boxes, the first one has Options in it, second one is blank. I just tried clicking on options, it didn't do anything, and it says out of range for Edit>Undo and Redo. Didn't really find any other bugs, if anyone mentioned these in this thread or you did sorry, I didn't feel like reading all the replies. But I didn't really notice anything else wrong with it, but I think you should make your bold, italic and underline buttons change in some way to know that you clicked it, you don't have to it's your script but I think most programs do that, I know microsoft word does, it makes the color of the square blue, but yea it's up to you, it's not a big deal though.

    But I like what the help button makes come up, I won't say what so people have to download to find out if they wanna know, I just thought it was clever.

    Good job with this script, it's really nice, I love it, I'll probably use it a lot, since I use notepad a lot for my shit, since this is like a more advanced one. Hope you keep this updated and keep making it better.

    EDIT: sorry just noticed now, in your post above this one you said Undo and Redo doesn't work.

    Edit: When I hit File>Exit, and scar opened back up, I saw it said

    SCAR Code:
    Line 858: [Hint] (858:5): Variable 'I' never used in script C:\Program Files\SCAR 3.15b\Scripts\Scar Notepad.scar
    meh!!!

    I don't think meh!!! had anything to do with the error but I felt like putting it in anyway lol, and then I re-ran your script and hit File>Exit I didn't get the error.... or meh I don't why meh showed up with error but didn't show up when error didn't. But yea, I got an error once, I don't know if everyone will get it though, because I only got the error the first time I ran your script (only ran it twice so far) and it says

    SCAR Code:
    Line 351: [Hint] (351:5): Variable 'WHICH' never used in script C:\Program Files\SCAR 3.15b\Scripts\Scar Notepad.scar
    Line 352: [Hint] (352:1): Variable 'MISSWORDS' never used in script C:\Program Files\SCAR 3.15b\Scripts\Scar Notepad.scar
    Line 858: [Hint] (858:5): Variable 'I' never used in script C:\Program Files\SCAR 3.15b\Scripts\Scar Notepad.scar

    so you can take those variables out I think... unless they're for a part of your script that just doesn't work yet..... I checked, the first two (which and misswords) are used, just they're notes right now, I was thinking they might be that when I said it goes to a part of the script that doesn't work yet, but variable I, I don't think I found that one, I think you can take that one out, I didn't see it noted anywhere in the procedure that goes to line 858.

    btw, I'm just trying to help sorry if it seems like I'm trying to take it over or something.

  15. #15
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    No, this is the exact kind of stuff i want .

    So you mean, when you select text thats bolded, you want the button's outer bevel to be lowered?(check the form editor if you dont know what i mean).

    The unused variables, are supposed to be commented out, except for the i, which i deleted .

    ive never gotten that exit error, so i dunno what to do(it might be a problem elsewhere in the script)

    ive been having problems with the undo/redo, so just dont click on them right now.

    and the blank panel was there for when i changed the other stuff around, so ill get rid of that too .
    (i didnt really change much so it doesnt really need to be updated right now, hopefully ill get the undo/redo working)
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  16. #16
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    yea for now it's good, and I didn't get an error using file exit, it's just hwo I stopped your script I think, but after I did, scar maximizes again and I saw a runtime error, I don't know when I got it though because you have scar minimize when scar notepad is opened. But what I meant with bold and those things is that you could make it like word where it makes the button look different, try it in word, click the "B" you'll see what I mean, I don't know if that's what you were saying in here

    "So you mean, when you select text thats bolded, you want the button's outer bevel to be lowered?(check the form editor if you dont know what i mean)."

    I didn't really understand what you meant, but it's really not a big deal. what I meant was make the button with "B", "I", etc. look different when your using them but it's not a big deal because you'll notice as soon as you write something, or should anyway.

  17. #17
    Join Date
    Oct 2007
    Posts
    678
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thats pretty awsome, but i only when i make non rs related scripts i try to keep it in 500 lines...excelent tho, except it contradicts the notepad because notepads are "simple"....i guess its more of an adress book thing...stil cool though...
    ps: in the form when menu is selected it has some gaps in between. not a big deal...just saying if your ever bored, you could look into it.

  18. #18
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    the gaps are on purpose. I put them there instead of making a whole nother panel, i made the space, and i think it looks cool. Origionally is was supposed to be a notepad, but i got to adding stuff, so i guess its really a word processor .

    Ive also been working on getting it to number the lines. But ive hit some problems.

    For the indented thing, i meant that when you select text that is bolded/italics/etc, then it will go a little something like the second one

    cuz i dont get blue text when its used, it just gets put in like the panel
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  19. #19
    Join Date
    Oct 2007
    Posts
    678
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well thats confusing, but i was thinking of making my a calc app in scar, a little more adv than the windows one? it was actually that prabola script that comes with scar game me the idea i could make a graphing calc in scar (i was very wrong [i didnt try yet]) but yeah maybe u and maybe with my help (doubt i could help you i dont know that much) but mostly u can make a calc lol?

  20. #20
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    i guess i could, ill put it on my list . But my list is like 10 scripts long, so it might be a while
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  21. #21
    Join Date
    Oct 2007
    Posts
    678
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    awsome let me know when u get to it cuz i bet i could learn somthing from it

  22. #22
    Join Date
    Jun 2007
    Posts
    124
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    sweet, i like how u can add tabs

  23. #23
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    fairly big update .
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  24. #24
    Join Date
    Apr 2008
    Location
    Northwest england
    Posts
    1,179
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    love the tabs and the scar syntax highlighting and the iccle pictures =]
    Blank!

  25. #25
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    Nice icons

    I uploaded my new syntax highlighter btw
    Hup Holland Hup!

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. SCAR Notepad
    By Da 0wner in forum Research & Development Lounge
    Replies: 15
    Last Post: 04-10-2008, 07:05 AM
  2. notepad
    By DaNkaTa` in forum OSR Help
    Replies: 4
    Last Post: 03-05-2008, 05:52 PM
  3. Replies: 12
    Last Post: 08-27-2007, 10:03 AM
  4. Replies: 28
    Last Post: 06-22-2006, 04:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •