Author Topic: Editor for testing  (Read 15562 times)

jj2007

  • Member
  • *****
  • Posts: 13871
  • Assembly is fun ;-)
    • MasmBasic
Editor for testing
« on: December 12, 2016, 01:36:31 PM »
This is a really simple editor with a toolbar. The only unusual feature is the "Language" menu.
Grateful for feedback and corrections, especially on the tooltips in not-so-common languages.
« Last Edit: December 13, 2016, 02:31:36 AM by jj2007 »

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 10572
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Editor for testing
« Reply #1 on: December 12, 2016, 04:30:33 PM »
Runs OK on my Win10. One suggestion, on the language menu, translate each language to its self so that the reader can read his own language. Appearance wise it needs a manifest to modernise the interface components.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

mabdelouahab

  • Member
  • ****
  • Posts: 534
Re: Editor for testing
« Reply #2 on: December 12, 2016, 07:25:47 PM »
This is a really simple editor with a toolbar. The only unusual feature is the "Language" menu.
Grateful for feedback and corrections, especially on the tooltips in not-so-common languages.
Good  :t , but the last 4 language don't translate complete like Arabic  (In: File Menu/Language Menu/Console build/Windows Build/Replace)
Windows 8.1 Arabic

jj2007

  • Member
  • *****
  • Posts: 13871
  • Assembly is fun ;-)
    • MasmBasic
Re: Editor for testing
« Reply #3 on: December 12, 2016, 09:29:20 PM »
One suggestion, on the language menu, translate each language to its self so that the reader can read his own language.

Good point, will do that in the next version.

Quote
Appearance wise it needs a manifest to modernise the interface components.

It does have a simple XP manifest - see second attachment. But there is a big known problem here: The tooltips won't work correctly with the full XP manifest. And while they work fine with a Win7 manifest, the whole proggie will fail to load in XP with that one. Try googling for CCM_SETVERSION tooltips :(

I attach the three versions for testing. Note how the tooltips show up - it's not very evident, sometimes they work in the "full" version, sometimes they show up only occasionally.

the last 4 language don't translate complete like Arabic  (In: File Menu/Language Menu/Console build/Windows Build/Replace)

Yes, some translations are missing. I don't speak Arabic, and I don't trust Google translate completely, so I would be grateful for proper translations of these more or less standard menus. Last attachment is the *.tab file used to build the editor, perhaps you could have a look; same for anybody here who speaks Chinese or Japanese 8)

MichaelW

  • Global Moderator
  • Member
  • *****
  • Posts: 1196
Re: Editor for testing
« Reply #4 on: December 12, 2016, 10:06:56 PM »
Other than flicker when the window is resized, it works fine on my Windows 10 notebook.
Well Microsoft, here’s another nice mess you’ve gotten us into.

jj2007

  • Member
  • *****
  • Posts: 13871
  • Assembly is fun ;-)
    • MasmBasic
Re: Editor for testing
« Reply #5 on: December 13, 2016, 02:30:47 AM »
Other than flicker when the window is resized, it works fine on my Windows 10 notebook.

Updated above, flicker is gone - thanks :t

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 10572
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Editor for testing
« Reply #6 on: December 13, 2016, 03:43:54 AM »
JJ,

Give this one a blast in the resource file.

Code: [Select]
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<description>Windows Application</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>

This has worked on everything for years.

In the RC file.

Code: [Select]
1 24 "manifest.xml"    // manifest file

For the tooltips straight out of the guts of QE, try this with a full XP manifest.

Code: [Select]
        mov hToolTips, FUNC(SendMessage,hToolBar,TB_GETTOOLTIPS,0,0)

        invoke SendMessage,hToolTips,TTM_SETDELAYTIME,TTDT_INITIAL,0
        invoke SendMessage,hToolTips,TTM_SETDELAYTIME,TTDT_RESHOW,0
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

jj2007

  • Member
  • *****
  • Posts: 13871
  • Assembly is fun ;-)
    • MasmBasic
Re: Editor for testing
« Reply #7 on: December 13, 2016, 12:03:25 PM »
Hutch,

Thanks for this, but no changes :(

My version of QE (4.0j) doesn't have tooltips - or do you mean something different?

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 10572
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Editor for testing
« Reply #8 on: December 13, 2016, 01:10:17 PM »
I use the tooltips to display on the status bar rather than the small popup windows. From memory the common control library is buggy with version 6.???? for XP and it was always a bit unreliable with tooltips. That particular manifest works on everything from XP upwards in 32 bit.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

jj2007

  • Member
  • *****
  • Posts: 13871
  • Assembly is fun ;-)
    • MasmBasic
Re: Editor for testing
« Reply #9 on: December 20, 2016, 10:52:38 AM »
New version: The tooltips work now with the XP manifest (one day I will reveal the ugly secret).

The editor also has a dropfile feature, and it should work with Unicode file names. Grateful for feedback 8)

This is the WM_DROPFILES handler:

Event DropFiles
  call CheckSave      ; check if user wants to save changes
  .if eax
      wLet ThisDoc$=wRec$(Files$(0))      ; take only the first dropped file
      jmp @OpenThis
  .endif

caballero

  • Member
  • *****
  • Posts: 2136
  • Matrix - Noah
    • abre ojos ensamblador
Re: Editor for testing
« Reply #10 on: December 20, 2016, 07:55:08 PM »
I cannot see any icon on buttons in toolbar.

For Spanish messages, they usually are used in infinitive:

* Copy -> Copiar
* Paste -> Pegar
* Cut -> Cortar
* Print -> Imprimir
The logic of the error is hidden among the most unexpected lines of the program

jj2007

  • Member
  • *****
  • Posts: 13871
  • Assembly is fun ;-)
    • MasmBasic
Re: Editor for testing
« Reply #11 on: December 20, 2016, 08:19:12 PM »
I cannot see any icon on buttons in toolbar.

Same problem as last time with gif images on your machine. Interesting ::)

Quote
For Spanish messages, they usually are used in infinitive:

* Copy -> Copiar
* Paste -> Pegar
* Cut -> Cortar
* Print -> Imprimir

Thanks, will fix that asap :t

FORTRANS

  • Member
  • *****
  • Posts: 1230
Re: Editor for testing
« Reply #12 on: December 21, 2016, 12:06:20 AM »
Hi,

   Version from Reply #9, did not run with Windows 2000, seems to
run okay with Windows XP.

HTH,

Steve N.

jj2007

  • Member
  • *****
  • Posts: 13871
  • Assembly is fun ;-)
    • MasmBasic
Re: Editor for testing
« Reply #13 on: December 21, 2016, 12:46:55 AM »
Version from Reply #9, did not run with Windows 2000, seems to run okay with Windows XP

Thanks, Steve. AFAIK Gdi+ was introduced with XP SP3...

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 10572
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Editor for testing
« Reply #14 on: December 21, 2016, 12:54:13 AM »
Seems to work fine on my Win10 64. Tooltips appear properly, language menu reads OK but I would be inclined on all of the different menus to write each language in itself, English for English, French for French etc ....
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy: