Jump to content

SimpleEdit 1.0


NELyon
 Share

Recommended Posts

Again, I suggest using menus to maximise the text area. By the way, this is coming along great!

http://www.autoitking.co.nr Site is DOWN | My deviantART | No Topic Topic - Don't do it!-------------------- UDF's/Scripts:AutoIt: [BenEditor 3.6] [_ShutDown()]PHP: [CommentScript]Web Based AutoIt: [MemStats] [HTML to AU3] [User LogIn and SignUp script]
Link to comment
Share on other sites

  • Replies 42
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

The menu is pretty easy

Make a menu, then make a menu item. In the loop see if that item was clicked. If you need help just let me know.

[EDIT] Spelling!

Edited by AutoItKing
http://www.autoitking.co.nr Site is DOWN | My deviantART | No Topic Topic - Don't do it!-------------------- UDF's/Scripts:AutoIt: [BenEditor 3.6] [_ShutDown()]PHP: [CommentScript]Web Based AutoIt: [MemStats] [HTML to AU3] [User LogIn and SignUp script]
Link to comment
Share on other sites

I made some changes to BenEditor. It's a little smaller and better looking. Inspiration? Head ache? I don't even know how I got the big parts to work only that I did. Keep up the good work btw! And don't forget that I am here to help and not to kill your project!

Edited by AutoItKing
http://www.autoitking.co.nr Site is DOWN | My deviantART | No Topic Topic - Don't do it!-------------------- UDF's/Scripts:AutoIt: [BenEditor 3.6] [_ShutDown()]PHP: [CommentScript]Web Based AutoIt: [MemStats] [HTML to AU3] [User LogIn and SignUp script]
Link to comment
Share on other sites

  • Moderators

I made some changes to BenEditor.

Sure seems your hijacking his thread... Nothing there says... "I made some changes to BenEditor if you want to see if they help" :D

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Sure seems your hijacking his thread... Nothing there says... "I made some changes to BenEditor if you want to see if they help" :D

No different than the last few posts at http://www.autoitscript.com/forum/index.ph...st&p=183341

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

:D I just wanna be friends! Is that too much to ask for? :D

Besides I'm just here to help!

http://www.autoitking.co.nr Site is DOWN | My deviantART | No Topic Topic - Don't do it!-------------------- UDF's/Scripts:AutoIt: [BenEditor 3.6] [_ShutDown()]PHP: [CommentScript]Web Based AutoIt: [MemStats] [HTML to AU3] [User LogIn and SignUp script]
Link to comment
Share on other sites

HEHEH i was bored and i made this , copy, cut, and paste dont work yet cuz theres no _GUICtrlEditGetSelText guess ill try and work on that and options doesnt work ill make that tommorow heheeh

was just bored not trying to hijack the thread

#include <GUIConstants.au3>
#include <File.au3>
#include <GuiEdit.au3>
Global $null
Global $file
Global $current
$GUItg = GUICreate("TG - Text Edit", 606, 415, 190, 114)
$Edit = GUICtrlCreateEdit("", 0, 0, 625, 417)
GUISetState(@SW_SHOW)
$MenuItem1 = GUICtrlCreateMenu("&File")
$menunew = GUICtrlCreateMenuItem("New", $MenuItem1)
$menuopen = GUICtrlCreateMenuItem("Open", $MenuItem1)
$menusave = GUICtrlCreateMenuItem("Save", $MenuItem1)
$menusaveas = GUICtrlCreateMenuItem("Save As", $MenuItem1)
$menuexit = GUICtrlCreateMenuItem("Exit", $MenuItem1)
$MenuItem2 = GUICtrlCreateMenu("&Edit")
$menuundo = GUICtrlCreateMenuItem("Undo", $MenuItem2)
$menucopy = GUICtrlCreateMenuItem("Copy", $MenuItem2)
$menucut = GUICtrlCreateMenuItem("Cut", $MenuItem2)
$menupaste = GUICtrlCreateMenuItem("Paste", $MenuItem2)
$menudelete = GUICtrlCreateMenuItem("Delete", $MenuItem2)
$menuoptions = GUICtrlCreateMenu("&Options")
$MenuItem3 = GUICtrlCreateMenu("&About")
$menuabout = GUICtrlCreateMenuitem("About",$MenuItem3)
While 1
$msg = GUIGetMsg()
Menu()
Gui()
WEnd

Func Menu()
    $ret = _GUICtrlEditCanUndo($Edit)
    Select 
        Case $msg = $menuexit
            Exit
        Case $msg = $menusaveas
            $file = FileSaveDialog("Choose a file to save","","All Files (*.*)",16)
            $path = _PathSplit($file,$null,$null,$null,$null)
            If $path[4] = "" Then
                $file = $file & ".txt"
            _FileCreate($file)
            FileWrite($file,GUICtrlRead($Edit))
            Else
            _FileCreate($file)
            FileWrite($file,GUICtrlRead($Edit))
            EndIf
        Case $msg = $menusave
            If $file = "" Then
                $file = FileSaveDialog("Choose a file to save","","All Files (*.*)",16)
                $path = _PathSplit($file,$null,$null,$null,$null)
                If $path[4] = "" Then
                    $file = $file & ".txt"
                    FileOpen($file,2)
                    _FileCreate($file)
                    FileWrite($file,GUICtrlRead($Edit))
                Else
                    _FileCreate($file)
                    FileWrite($file,GUICtrlRead($Edit))
                EndIf
            Else
                FileOpen($file,2)
                FileWrite($file,GUICtrlRead($Edit))
            EndIf
        Case $msg = $menunew
            GUICtrlSetData($Edit,"")
            $file = ""
        Case $msg = $menuopen
            $file = FileOpenDialog("Open a file","","All Files (*.*)")
            GUICtrlSetData($Edit,FileRead($file))
        Case $msg = $menuabout
            MsgBox(0,"About","I was bored so I made it")
        Case $msg = $menuundo
            If ($ret <> $current) Then
                If $ret == 0 Then
                    MsgBox(0,"Error","Nothing to Undo")
                Else
                    _GUICtrlEditUndo($edit)
                    $ret = $current
                EndIf
            EndIf
    EndSelect
EndFunc

Func Gui()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            Exit
    EndSelect
EndFunc
Link to comment
Share on other sites

Not bad!

@codemyster: You're going to do syntax highlighting? For that you need a rich text edit box which I have not seen yet.

http://www.autoitking.co.nr Site is DOWN | My deviantART | No Topic Topic - Don't do it!-------------------- UDF's/Scripts:AutoIt: [BenEditor 3.6] [_ShutDown()]PHP: [CommentScript]Web Based AutoIt: [MemStats] [HTML to AU3] [User LogIn and SignUp script]
Link to comment
Share on other sites

Try using the Beta version ..

Its included there

--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote]

Link to comment
Share on other sites

  • 1 month later...

ehh im just sayin, i would be offended if ben came in here and posted stuff like that in my thread.

BenEditor is WAY better. (Not bragging, telling the truth)

how is that "just here to help"? no suggestions, no "try adding _____feature". just "mine is better". ok, you made a few suggestions. but you kept managing to slip BenEditor in there.

I made some changes to BenEditor. It's a little smaller and better looking. Inspiration? Head ache? I don't even know how I got the big parts to work only that I did. Keep up the good work btw! And don't forget that I am here to help and not to kill your project!

hello??? do I even need to say anything about that?

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...