Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
_TITLE and extended ASCII characters.
#8
Ah, maybe it has something to do with the configuration. It seems to be that = sign is something Windows throws in. Also "?" marks and a few other symbols with different values, but we are actually not seeing the UNICODE character here. It's a red herring.

Code: (Select All)
DECLARE DYNAMIC LIBRARY "user32"
    FUNCTION SetWindowTextW (BYVAL Handle AS _OFFSET, title$)
END DECLARE
_CONTROLCHR OFF
DO
    j = j + 1
    i% = _MAPUNICODE(126 + j)

    t$ = MKI$(i%)
    PRINT 126 + j, i%, MID$(t$, 1, 1), t$

    _DELAY .1

    title$ = CHR$(64 + j) + CHR$(34) + "F" + CHR$(0) + "o" + CHR$(0) + "o"
    result = SetWindowTextW(_WINDOWHANDLE, title$)
    SLEEP
LOOP

Watch the title bar change to ?Foo to =Foo at 159.

Pete
Reply


Messages In This Thread
_TITLE and extended ASCII characters. - by Pete - 11-15-2022, 04:25 PM
RE: _TITLE and extended ASCII characters. - by Pete - 11-15-2022, 07:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Displaying French characters? bplus 6 1,127 05-06-2025, 06:14 PM
Last Post: Petr
  printing characters > chr$(127) madscijr 18 2,176 03-11-2025, 07:33 PM
Last Post: madscijr
  Need some help getting characters to follow each other correctly Cobalt 6 1,065 11-22-2024, 01:19 AM
Last Post: Cobalt
  control characters in Change dialog box digitalmouse 10 1,868 05-09-2024, 02:17 AM
Last Post: digitalmouse
  Error when inputting ASCII text from COM port MichelleL 11 1,928 01-24-2024, 08:01 AM
Last Post: mdijkens

Forum Jump:


Users browsing this thread: 1 Guest(s)