The MASM Forum

Projects => Rarely Used Projects => PowerBASIC => Topic started by: hutch-- on November 13, 2020, 11:19:02 AM

Title: New editor.
Post by: hutch-- on November 13, 2020, 11:19:02 AM
I have coded this one to use in part as a template for others I need to make from time to time. It has threaded file IO, does its confirmation correctly, it will load files > 100 megabytes, a novel technique for tooltips, it is FAST and its cute.  :tongue:

ATTACHMENT reloaded to fix error.

For folks who don't have access at a PB compiler, I have posted a near identical 64 bit MASM version which has a much larger capacity.

http://masm32.com/board/index.php?topic=8954.0
Title: Re: New editor.
Post by: Vortex on November 13, 2020, 05:00:16 PM
Very nice work :thumbsup:
Title: Re: New editor.
Post by: hutch-- on November 13, 2020, 09:32:30 PM
Thanks Erol, seems to do the job OK.
Title: Re: New editor.
Post by: HSE on November 14, 2020, 01:21:03 AM
Build well  :thumbsup:
Title: Re: New editor.
Post by: stevenxie on November 14, 2020, 08:59:03 PM
hi,HUTCH,you are very good.however, it has happened a small bug in MY chinese verion WINDOWS 10. FONT SIZE IS TOO Small so that i can't  right edit the text.

Title: Re: New editor.
Post by: hutch-- on November 14, 2020, 09:23:00 PM
Its an example for the PowerBASIC compiler so while its easy enough to change the font size and type, you need to be able to build it to do so. The font used is the "fixedsys" font which may end up too small depending on your display resolution. What I don't know is the difference between a Chinese version and a US/UK version of Win10.
Title: Re: New editor.
Post by: stevenxie on November 14, 2020, 09:41:21 PM
Its an example for the PowerBASIC compiler so while its easy enough to change the font size and type, you need to be able to build it to do so. The font used is the "fixedsys" font which may end up too small depending on your display resolution. What I don't know is the difference between a Chinese version and a US/UK version of Win10.
However, I edit in the QEDIT.EXE without similar problems. QEDIT.EXE is very convenient to use, powerful, so that I basically do not need other IDE to code.
Title: Re: New editor.
Post by: stevenxie on November 14, 2020, 09:51:33 PM
Hi ,HUTCH,
 hFont =get_font_handle (12,9,600," fixedsys ")
 SendMessage hEdit,%WM_SETFONT,hFont,%TRUE
 Can I change the corresponding value in the above original code and rebuild the source program to achieve the effect I need?
 I am sorry, there is no POWER BASIC. in my computer system I don't know where PWOERBAsIC can download to the latest version.
Title: Re: New editor.
Post by: hutch-- on November 14, 2020, 10:17:37 PM
PowerBASIC is commercial software, it cannot be downloaded for free. I can change the font name in a hex editor but cannot find the settings for the font.
Title: Re: New editor.
Post by: jj2007 on November 14, 2020, 10:34:05 PM
The font used is the "fixedsys" font

Recompile it with Lucida Sans Typewriter. That font is scalable, i.e. hold Ctrl and use the mousewheel to choose the right size.
Title: Re: New editor.
Post by: hutch-- on November 14, 2020, 10:48:45 PM
Yes, that works well,

consolas
courier new
lucida console

I will do a cooked version as I don't want the original changed.

Would anyone want it in old Microsoft blue with light grey test ? Emulation of the 1990 PWB.

ATTACHMENT HAS BEEN RELOADED
Title: Re: New editor.
Post by: stevenxie on November 14, 2020, 10:50:54 PM
The font used is the "fixedsys" font

Recompile it with Lucida Sans Typewriter. That font is scalable, i.e. hold Ctrl and use the mousewheel to choose the right size.
hi,VROTEX.I haven't mastered this technique yet
Title: Re: New editor.
Post by: hutch-- on November 14, 2020, 10:55:31 PM
With the version posted above, just the binary, hold down the CTRL key and move the scroll wheel on the mouse.
Title: Re: New editor.
Post by: jj2007 on November 14, 2020, 10:58:14 PM
With the version posted above, just the binary, hold down the CTRL key and move the scroll wheel on the mouse.

Works fine! Note Hutch means the updated version in reply #10, i.e. not the top post.
Title: Re: New editor.
Post by: stevenxie on November 14, 2020, 11:04:07 PM
With the version posted above, just the binary, hold down the CTRL key and move the scroll wheel on the mouse.
HI,HUTCH,I AM SUCCESSFULL
 :eusa_boohoo:
Title: Re: New editor.
Post by: stevenxie on November 14, 2020, 11:19:42 PM
hi,hutch. A new bug has happend.when I press "s" key in tedit, my computer screen shows a dialog bx of save as...., why is this?





Title: Re: New editor.
Post by: Vortex on November 14, 2020, 11:47:53 PM
I can confirm it. Hitting s without CTRL is launching the Save As dialog box.
Title: Re: New editor.
Post by: hutch-- on November 14, 2020, 11:49:29 PM
Its set the CTRL + S as the hotkey. What I don't know is how a Chinese version of Win10 handles hotkeys.
Title: Re: New editor.
Post by: hutch-- on November 14, 2020, 11:55:08 PM
 :sad:

I can duplicate it as well. A stuffup in how the hotkeys are done. Will fix.

For anyone with the source, change this

      bypass1:
      ' --------------------------------
        CmpKey(%VK_SHIFT)
        ! je bypass2

To

      bypass1:
      ' --------------------------------
        CmpKey(%VK_CONTROL)
        ! jne bypass2

        CmpKey(%VK_SHIFT)
        ! je bypass2

I have replaced the complete project and the modified version.

Title: Re: New editor.
Post by: stevenxie on November 15, 2020, 02:38:57 AM
:sad:

I can duplicate it as well. A stuffup in how the hotkeys are done. Will fix.

For anyone with the source, change this

      bypass1:
      ' --------------------------------
        CmpKey(%VK_SHIFT)
        ! je bypass2

To

      bypass1:
      ' --------------------------------
        CmpKey(%VK_CONTROL)
        ! jne bypass2

        CmpKey(%VK_SHIFT)
        ! je bypass2

I have replaced the complete project and the modified version.

hi,hutch. Please you releae new version.
Title: Re: New editor.
Post by: Vortex on November 15, 2020, 02:49:33 AM
hi,hutch. Please you releae new version.

Hi stevenxie,

Hutch uploaded the new releases. Did you try them? The problem is solved.
Title: Re: New editor.
Post by: stevenxie on November 15, 2020, 10:05:56 PM
all things ok,very good
Title: Re: New editor.
Post by: bobl on November 17, 2020, 09:43:20 AM
"Wickedly crafted" looks right.
Thank you very much for this.
I use a few minimalistic editors and they start up fast but this is instantaneous and the DOS prompt looks very useful.