Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
_TITLE and extended ASCII characters.
#4
I've played with it a little as well. I think I've got it working, more or less, but there's still no printing of the "menu" icon in the title bar. Instead, it does a substitution as shown below:

Code: (Select All)
DECLARE DYNAMIC LIBRARY "user32"
    FUNCTION SetWindowTextW (BYVAL Handle AS _OFFSET, title$)
END DECLARE

'_TITLE CHR$(240) + "Foo"

i% = _MAPUNICODE(240)
t$ = MKI$(i%)
PRINT t$ 'this is chr$(34) and "a", but they need to be reversed to do anything.  Endianness issue, I guess?
SLEEP 'so we have time to make certain that the _WINDOWHANDLE is properly assigned to this window


title$ = "a" + CHR$(34) + "F" + CHR$(0) + "o" + CHR$(0) + "o" + CHR$(0) + CHR$(0)
result = SetWindowTextW(_WINDOWHANDLE, title$) 'IF the line with _TITLE is uncommented above, this does nothing.
SLEEP

All that effort just to get "=Foo" to display! Tongue
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 SMcNeill - 11-15-2022, 06:07 PM



Users browsing this thread: 7 Guest(s)