Non-latin characters in the popupmenu header

I have a simple popup menu in my application vcl

, but there is something weird when I write non-latin characters

inpopup-menu

Caption

characters are spelled correctly, but this extra character has a (Z) added at the end of the title. these characters are only added when I type non-lingual words in the title, the english words are displayed correctly.

here is the dfm of the test project

object Form1: TForm1
  Left = 0
  Top = 0
  BorderIcons = [biSystemMenu]
  Caption = 'Form1'
  ClientHeight = 242
  ClientWidth = 472
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'Tahoma'
  Font.Style = []
  OldCreateOrder = False
  PopupMenu = PopupMenu1
  PixelsPerInch = 96
  TextHeight = 13
  object PopupMenu1: TPopupMenu
    Left = 232
    Top = 128
    object N1: TMenuItem
      Caption = #1575#1604#1604#1594#1577' '#1575#1604#1593#1585#1576#1610#1577
    end
  end
end

      

and this is a picture of how the result is obtained. this additional (Z) I did not write it in the signature at all. i dont know why this shows any ideas why?

enter image description here

+3


source to share


1 answer


TPopupMenu

tries to automatically set a hotkey for each menu item (unless you did it manually using &

char). You can change the property value PopupMenu.AutoHotkeys

to maManual

if you want to avoid this behavior.



+6


source







All Articles