Author Topic: Ascii chart  (Read 2848 times)

jimg

  • Member
  • ***
  • Posts: 305
Ascii chart
« on: May 28, 2017, 12:57:36 PM »
With the last update to windows 10, the graphic ascii chart I've used for years as a quick reference is all fuzzy.  Rather than try to fix the problem, I just made a quickie out of an old program to show an ascii chart in a toolwindow.   Released to the public domain for all uses public and private.
All menus are in the right-click context menu.  Maybe you can get some use out of it, even if it's only a laugh at my coding style :)


Fixed terminal font problem.  Other minor changes

2/8/19  Fixed bug when using thin-black border
« Last Edit: February 09, 2019, 05:33:20 PM by jimg »

jj2007

  • Member
  • *****
  • Posts: 9087
  • Assembler is fun ;-)
    • MasmBasic
Re: Ascii chart
« Reply #1 on: May 28, 2017, 05:14:06 PM »
Works fine, and there is nothing wrong with your coding style :t

felipe

  • Member
  • *****
  • Posts: 1092
  • Eagles are just great!
Re: Ascii chart
« Reply #2 on: May 30, 2017, 03:36:54 AM »
I did like it, i think it's a good job. The style it's personal (at least when you work by your own and not in some team). Thanks for share.  :icon14: :icon14:
Felipe.

jimg

  • Member
  • ***
  • Posts: 305
Re: Ascii chart
« Reply #3 on: June 18, 2017, 06:32:50 AM »
Fixed terminal font auto switch to wrong font problem.
Removed superfluous push esi.
Fixed select fixed spacing font.
Other minor cleanup.

felipe

  • Member
  • *****
  • Posts: 1092
  • Eagles are just great!
Re: Ascii chart
« Reply #4 on: June 18, 2017, 08:15:11 AM »
Fixed terminal font auto switch to wrong font problem.
Removed superfluous push esi.
Fixed select fixed spacing font.
Other minor cleanup.

That's great,   :icon14:
are you going to upload it?
Felipe.

jimg

  • Member
  • ***
  • Posts: 305
Re: Ascii chart
« Reply #5 on: June 18, 2017, 09:45:57 AM »
I updated the one in the first post.

FORTRANS

  • Member
  • *****
  • Posts: 1039
Re: Ascii chart
« Reply #6 on: June 18, 2017, 10:22:07 PM »
Hi,

   Runs well with W2k and Win98.

Regards,

Steve N.

jj2007

  • Member
  • *****
  • Posts: 9087
  • Assembler is fun ;-)
    • MasmBasic
Re: Ascii chart
« Reply #7 on: June 18, 2017, 11:38:23 PM »
I updated the one in the first post.

Problem with the vertical scrollbar hiding the a-z column persists (Win7-64). Four pixels extra would be enough:

        inv CreateWindowEx, WS_EX_TOOLWINDOW or WS_EX_TOPMOST , soff("RichEdit20A"),soff("Ascii"),
                WS_POPUP or WS_SIZEBOX or \
                WS_VISIBLE or ES_MULTILINE or ES_NOHIDESEL or ES_WANTRETURN or\
                ES_SAVESEL or WS_CLIPSIBLINGS or ES_READONLY or\
                WS_HSCROLL or ES_AUTOHSCROLL or WS_VSCROLL or ES_AUTOVSCROLL,
                0,0, 335, 604, 0, 0, hWin, NULL

jimg

  • Member
  • ***
  • Posts: 305
Re: Ascii chart
« Reply #8 on: June 18, 2017, 11:49:17 PM »
Done.  Thanks :)

jimg

  • Member
  • ***
  • Posts: 305
Re: Ascii chart
« Reply #9 on: February 09, 2019, 05:41:57 PM »
Fixed very strange bug.  When border was set to thin-black, upon restarting program, Windows does weird things.  When CreateWindowEx creates a window with  the style and exstyle to get a thin-black border,  and then you move or resize the window it makes every other open app blink or redo their captions.    The solution was to create a borderless window first, and then apply the desired border afterward using SetWindowLong for style and exstyle.  This only seemed to affect the thin-black border, my favorite.