News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Simple editor - betatesters please

Started by jj2007, March 06, 2024, 01:49:54 AM

Previous topic - Next topic

jack

sinsi, I couldn't agree with you more about toolbars, except for the print icon I find most of those icons cryptic and I have hover the mouse over them to hopefully get a hint at what it does, I simply avoid them if at all possible

jj2007

Quote from: sinsi on March 14, 2024, 01:08:50 PMOptions? How do I set up assembler, linker etc?

By editing the default batch files :thup:

Res\SimpleEdC.bat
Res\SimpleEdW.bat
Res\BuildMasm64SdkC.bat
Res\BuildMasm64SdkW.bat
Res\BuildWinIncC.bat
Res\BuildWinIncW.bat

For example, BuildWinIncW.bat:
set lib=\WinInc\Lib64
set include=\WinInc\Include;%~dp1

For \Masm32 and \Masm64, the predefined batch files should work just fine for all files in the Examples and Examples64 folders.

You made me discover a bug in the setup: extract the attached file to [SimpleEditorFolder]\Res, then launch SimpleEditor.exe again. You should now see the QikPad example, and it should build by hitting F6

sinsi

There were no batch files (or res folder) when I first started the editor.
I don't like the use of a folder under the editor folder ("res"), mainly because I run the editor from my desktop (to avoid problems with Windows Security), so now my desktop looks untidy :biggrin: .

More to come ☣️
🍺🍺🍺

jj2007

Quote from: sinsi on March 15, 2024, 12:08:48 AMI don't like the use of a folder under the editor folder ("res"), mainly because I run the editor from my desktop (to avoid problems with Windows Security), so now my desktop looks untidy :biggrin: .

Put the exe in \Masm32\SimpleEditor.exe, run it once, then create a shortcut to the exe and copy that to your desktop. Works like a charm here on Win10 :biggrin:

jj2007

Quote from: jack on March 14, 2024, 01:36:23 PMexcept for the print icon I find most of those icons cryptic and I have hover the mouse over them to hopefully get a hint at what it does

Better? No hovering & tooltips, though. The car to the right means "run" :cool:



For comparison:



@Sinsi - current key shortcuts:
- F3: search for selection (i.e. select SendMessage, then hit F3, Return to see the listbox)
- F5: Masm32 console build (with resources, if [filename].rc or rsrc.rc are found)
- F6: Masm32 Windows build (with resources, if [filename].rc or rsrc.rc are found)
- Ctrl F: focus to the search box (type the string to find, hit Return, arrow down to scroll)
- Ctrl O: open file
- Ctrl S: save file
- Ctrl Z+Alt Backspace: undo
- Ctrl Y: redo
- Ctrl T: make SimpleEditor topmost
- Escape: close (with questions asked if there were edits)

sinsi

Quote from: jj2007 on March 15, 2024, 12:39:21 AMPut the exe in \Masm32\SimpleEditor.exe, run it once, then create a shortcut to the exe and copy that to your desktop. Works like a charm here on Win10 :biggrin:

Don't tell me how to set up my computer  :badgrin:
I don't use MASM32, I've gone to the dark side and use VS :cool:
🍺🍺🍺

jj2007


sinsi

Ha! Latest ML/Link, latest libraries, built-in debugger, not bad editor, free, VB.net :tongue:
Bloated, hard to set up for ASM, updates every week or so... :sad:

I do still use qeditor though, so I am willing to give your Simple Editor a thrash  :biggrin:
🍺🍺🍺

jj2007

Time for a new test: version 6 attached here. Extract to any folder on your Masm32 drive, then run the exe. If you see Qikpad.asm, hit F6. If you don't see Qikpad, let me know what you see, please :thup:

As usual, the legal fineprint: use at your own risk etc etc; and tell me if you are satisfied with the way SimpleEditor handles a crash. Simulate one as follows:

- edit a source
- don't save, don't exit
- kill the SimpleEditor.exe process in Task Manager.

P.S.: Ctrl E changes text colour, Ctrl H background colour, Ctrl T/Ctrl Shift T the selection's font size.

sinsi

Click New File - shows a Save dialog, no way to cancel the save and have a blank document.
No right click, even for copy/paste?
Menu problem is still there re mouse position.
I would prefer to have a blank document if I just open the editor, not the previous one I was working on.
To add to the above, if the file is deleted, when the editor is next opened it shows an Open dialog but if I click cancel it closes the editor.
Dislike how it closes when you hit Esc. Killer move, it doesn't ask to save if you've changed anything.
Focus starts in the search box, would prefer it in the document.
Remembers the last search - for me, distracting.
Toolbar - please let me switch it off  :biggrin:
What are bgR1 and fgR1 colours for?
🍺🍺🍺

jj2007

Quote from: sinsi on March 27, 2024, 06:51:57 AMit doesn't ask to save if you've changed anything

That is definitely not intended, sorry :sad:

Quote from: sinsi on March 27, 2024, 06:51:57 AMWhat are bgR1 and fgR1 colours for?
Default background and foreground colours for rich text files.

greenozon

emm
Is it possible to NOT close main window by the ESC please?? :)

jj2007

Quote from: greenozon on March 29, 2024, 12:59:04 AMIs it possible to NOT close main window by the ESC please??

That will be fixed soon :azn:

greenozon

Thanks!

Another question (most probably not related to the qeditor but it was in it's output:

*** console link ***
POLINK: warning: Realigned section '.idata$5' in object 'kernel32.lib(kernel32.dll)' (from 4 to 8 byte(s)).
POLINK: warning: Realigned section '.idata$4' in object 'kernel32.lib(kernel32.dll)' (from 4 to 8 byte(s)).
POLINK: warning: Realigned section '.idata$5' in object 'user32.lib(user32.dll)' (from 4 to 8 byte(s)).
POLINK: warning: Realigned section '.idata$4' in object 'user32.lib(user32.dll)' (from 4 to 8 byte(s)).
POLINK: warning: Realigned section '.idata$5' in object 'gdi32.lib(gdi32.dll)' (from 4 to 8 byte(s)).
POLINK: warning: Realigned section '.idata$4' in object 'gdi32.lib(gdi32.dll)' (from 4 to 8 byte(s)).
POLINK: warning: Realigned section '.idata$5' in object 'shell32.lib(shell32.dll)' (from 4 to 8 byte(s)).
POLINK: warning: Realigned section '.idata$4' in object 'shell32.lib(shell32.dll)' (from 4 to 8 byte(s)).
POLINK: warning: Realigned section '.idata$5' in object 'gdiplus.lib(gdiplus.dll)' (from 4 to 8 byte(s)).
POLINK: warning: Realigned section '.idata$4' in object 'gdiplus.lib(gdiplus.dll)' (from 4 to 8 byte(s)).
*** linking ok ***
*** running "C:\masm64\Examples\Simple\controls\controls.exe" ***
*** all is fine ***
Press any key to continue . . .


any hints how to get rid of above warnings, gentlemen?

jj2007

No such warnings here:

Tabella codici attiva: 65001
["C:\masm64\Examples\Simple\controls\controls.asm"] [] []
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Copyright (C) Microsoft Corporation.  All rights reserved.

*** assembling C:\Masm32\JTools\SimpleEditor\Res\tmp_file.asm ***
Microsoft (R) Macro Assembler (x64) Version 14.30.30705.0
Copyright (C) Microsoft Corporation.  All rights reserved.

 Assembling: C:\Masm32\JTools\SimpleEditor\Res\\tmp_file.asm
*** console link ***
*** linking ok ***
Impossibile trovare il file specificato.
*** running "C:\Masm64\Examples\Simple\controls\controls.exe" ***
*** all is fine ***