General > The Workshop

Another ASM editor

(1/24) > >>

NoCforMe:
It seems to be all the rage to create yet another editor for assembly code, so here's mine.

This is what I accomplished in a couple sittings over one day. It's not an editor yet, no open or save, but you can check out some features. Everything on the tool list at the right is implemented; try it out. You'll see what those buttons do.

"Cubbyholes"? That's my idea for a set of "bins" where you can stash bits of text and do the following by clicking on a button (4 buttons/bin):

* Paste the text into the editor
* Search the editor text in either directionThis would solve the frustrating problem of Notepad (and many, if not most, other editors) of only being able to hold one item at a time either on the clipboard or as a search term. I regularly want to be able to look for and paste 3 or 4 bits of text at a time.

This is just a fun project at this point; no delusions about making a "real" editor out of it. (For one thing, it's just a basic Win32 edit control with a bunch of fancy stuff attached to it.) OTOH, who knows? I could probably come up with something a whole lot better than Notepad if I stick to it.

I'd appreciate any comments about the interface design, and suggestions for improvement. Not talking about the appearance so much as the functionality and behavior. Thanks!

In case anyone's wondering, that tool list is based on a listbox, using custom draw and notifications, and some attached child controls (buttons). So the listbox cells act as buttons. One thing that isn't so good is that there's no feedback when you click on a cell to insert its text. Maybe buttons would be better? But it does make for nice easy programming. I could "flash" the cell (change FG & BG colors) momentarily to indicate it being clicked. Let me know your ideas.

jj2007:

--- Quote from: NoCforMe on September 03, 2022, 06:54:23 AM ---"Cubbyholes"? That's my idea for a set of "bins" where you can stash bits of text and do the following by clicking on a button (4 buttons/bin):

* Paste the text into the editor
* Search the editor text in either directionThis would solve the frustrating problem of Notepad (and many, if not most, other editors) of only being able to hold one item at a time either on the clipboard or as a search term. I regularly want to be able to look for and paste 3 or 4 bits of text at a time.
--- End quote ---

MS Office has the multiple clipboard feature. Sounds good, actually, I might steal the idea :biggrin:

Re multiple search terms, in RichMasm you just hit Ctrl F, then arrow up (or down) to scroll through the last 9 search terms used. They are stored with the document, so when you reopen it, these 9 search strings are still there. Another feature: select any word and hit F3 to find all matches.

Btw I can't see the caption of your editor, and there is no way to move it into visibility. Congrats, you have a nice high resolution monitor! You may consider this:

invoke SystemParametersInfo, SPI_GETWORKAREA, 0, addr rc, 0

zedd151:

--- Quote from: NoCforMe on September 03, 2022, 06:54:23 AM ---It seems to be all the rage to create yet another editor for assembly code...

--- End quote ---
In keeping with the trend, I'll release in the next day or so "SaMe editor" -  otherwise knows as "Still another Masm editor" :biggrin:
Or then again, maybe not.

I do have code though, for a coupla editors...

NoCforMe:

--- Quote from: jj2007 on September 03, 2022, 07:10:56 AM ---Btw I can't see the caption of your editor, and there is no way to move it into visibility. Congrats, you have a nice high resolution monitor! You may consider this:

invoke SystemParametersInfo, SPI_GETWORKAREA, 0, addr rc, 0

--- End quote ---

Thanks. That sounds like just the thing. Easily done.

jj2007:

--- Quote from: swordfish on September 03, 2022, 07:44:53 AM ---In keeping with the trend, I'll release in the next day or so "SaMe editor" -  otherwise knows as "Still another Masm editor"
--- End quote ---

I recommend TinyIDE - a 7,168 byte editor for *.asm, *.asc and *.rtf files. Source included, 1,100 lines of purest Masm32 SDK :thumbsup:

Navigation

[0] Message Index

[#] Next page

Go to full version