I have TMainMenu with icons. Everything is fine until I posted TMemo on the form. When I run my program, the icons disappeared. What happened and how can I fix this problem?
I am using Delphi 2010 as an IDE.
The question is described in Sertac. Streaming a text note results in the loss of the icon from the menu bar.
Thus, the simplest and most appropriate solution is to make sure that the memo does not have text in the .dfm file. Set the text at run time after creating the form. For example, in the constructor or in the event handler OnCreate.
OnCreate
VCL, TMenuItem.AppendTo. , IsOwnerDraw False, , GetImageList Nil, . , VCL, OwnerDraw = True TMainMenu .
TMenuItem.AppendTo
IsOwnerDraw
False
GetImageList
Nil
OwnerDraw = True
EDIT: , OwnerDraw = True , Bitmap TMenuItems . , TImageList. OwnerDraw = False, .
OwnerDraw = False
Source: https://habr.com/ru/post/1523496/More articles:Extract substrings from C # big string? - stringConvert from string to object in a Windows 8.1 app app C # - c #Не вызывать функцию, если None Возвращаемое значение - pythonWhy is the bitrate implemented by the template? - c ++visibility: hidden in IE does not work - htmlIs it better to use `static const std :: string` or just` const std :: string` in a method / function? - c ++C ++ Vector wrapper around a variational function - c ++Laravel postgresql case insensitive - case-insensitiveDifference between 2NF and BCNF - relational-databaseHow can you combine only 2 of the corners on a Xamarin.iOS UITableView? - c #All Articles