News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

MONOTXT Text Editor

Started by hutch--, January 09, 2008, 02:57:21 AM

Previous topic - Next topic

hutch--

A long time ago you used to hear "smaller and faster" with people who wrote PowerBASIC code but over time this model seems to have been lost in the rush towards VB style basic programming.

Here is an example that IS small and fast using the Windows API functions with a little help from the Visual C++ runtime library MSVCRT. The PowerBASIC runtime library has not been used to keep the speed up and the size down.

It is a Notepad style interface richedit 2.0 text editor with near unlimited file size, bidirectional search and replace with the "Goto Line Number" functionality added. The richedit 2.0 has buit in unlimited undo/redo which has been used in this editor. It makes sustantial use of resource dialogs because of their size efficiency and clean clear properly documented code.

Note that the editor is licenced as per any code in the masm forum and is copyright code. Any PowerBASIC programmer is welcome to use it, modify it, include parts of it in their own code and sell their own work that includes parts of it but the editor cannot be redistributed, sold, bundled or relicenced. This is designed to prevent code collectors and redistributors who should write their own.

[attachment deleted by admin]
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

hutch--

#1
This is version 1.0b of Monotxt. I just got my hands on PBwin version 9.02 and had a quick play with Monotxt. Added an internal manifest XML file to enable the later common controls and tweaked the startup size so that it was limited to a 1.4 to 1 aspect ratio, mainly so it did not start too wide on recent flat screen monitors. I redrew the 16 colour 766 byte icon into a pseudo Aero Black interface icon sized window and it now builds by default settings to 29184 bytes, still very competitive in size terms and ready to be stacked with as much functionality as is necessay to do the job.

As before it is copyright software that is available to any licenced PowerBASIC customer to use, modify and include any part of it in their own software. The licence excludes code collectors and redistributors who should write their own code.

Note the file has changed, a couple of bugs were fixed due to differences with the new compiler version.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

jcfuller

Hutch,
  A couple of problems with the source.
INSTANCE is a reserved word used in ALTDLGS.BAS
You left in hard coded paths for include files.

James

hutch--

Thanks James,

Strangely enough I get no error and it builds OK here. I build my code with hard coded paths from a batch file and the paths must be changed to the local setup of another computer.

I have changed the reserve word and it builds OK, wonder why it did not flag an error ?

LATER: I had used the wrong compiler, its building Ok with 9.02 and I have removed the prototypes for local functions as they are no longer needed in this compiler version.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php