_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



Users browsing this thread: 17 Guest(s)