The MASM Forum

Specialised Projects => PowerBASIC => Topic started by: hutch-- on October 22, 2018, 11:33:07 PM

Title: Single Instance Text Editor, BlackMono.
Post by: hutch-- on October 22, 2018, 11:33:07 PM
I wrote the basic editor about 10 years ago and recently added the code to control the text and background colour, set the margins so it had a wider selection bar and set it with the "#option largemem32" to increase the available memory it has available.

It is a old Notepad style interface but has search and replace, goto line number and will run multiple instances with drag and drop between instances. Hope it is useful to someone.
Title: Re: Single Instance Text Editor, BlackMono.
Post by: Mikl__ on October 23, 2018, 01:57:15 AM
Hi, hutch--!
It's very good example! (https://wasm.in/styles/smiles_s/good3.gif)
Title: Re: Single Instance Text Editor, BlackMono.
Post by: HSE on October 26, 2018, 02:36:07 AM
Hi Hutch!

Is there a solution for PB9?

compiling "BlackMono.exe"
Classic PowerBASIC for Windows
Classic PB/Win  Version 9.07
Copyright (c) 1996-2012 PowerBasic Inc.
Englewood, Florida USA
All Rights Reserved

Error 516 in ...\BLACKMONO\ALTDLGS.BAS(53:005):  DefType, Type id (?%&!#$), or AS... required: GETCURRENTDIRECTORY
Line 53:     GetCurrentDirectory %MAX_PATH, cdir


I added "%MAX_PATH = 260"

Thanks.
Title: Re: Single Instance Text Editor, BlackMono.
Post by: hutch-- on October 26, 2018, 02:08:35 PM
Hector,

Give this version a blast, I have it building here with PBWIN version 9.0, I had to change the order of the include files and change the way the inline assembler notation ws done but its working OK here. Builds at 33k as I think there is extra data from the older include files being added. Let me know if it works OK.
Title: Re: Single Instance Text Editor, BlackMono.
Post by: HSE on October 26, 2018, 11:10:32 PM
Perfect  :t

Tanks.