Author Topic: Single Instance Text Editor, BlackMono.  (Read 817 times)

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 5945
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Single Instance Text Editor, BlackMono.
« 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.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :biggrin:

Mikl__

  • Member
  • ****
  • Posts: 710
Re: Single Instance Text Editor, BlackMono.
« Reply #1 on: October 23, 2018, 01:57:15 AM »
Hi, hutch--!
It's very good example!

HSE

  • Member
  • ****
  • Posts: 856
  • <AMD>< 7-32>
Re: Single Instance Text Editor, BlackMono.
« Reply #2 on: October 26, 2018, 02:36:07 AM »
Hi Hutch!

Is there a solution for PB9?

Code: [Select]
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.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 5945
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Single Instance Text Editor, BlackMono.
« Reply #3 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.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :biggrin:

HSE

  • Member
  • ****
  • Posts: 856
  • <AMD>< 7-32>
Re: Single Instance Text Editor, BlackMono.
« Reply #4 on: October 26, 2018, 11:10:32 PM »
Perfect  :t

Tanks.