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

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

Forum Jump:


Users browsing this thread: 1 Guest(s)