How to display text and icons in Toolbar, custom icon size, and associate with MenuItem

xiaoxiao2021-03-06  35

To pay attention to the following aspects, the order is not necessarily correct, there may be more than a few times

1. Setting Toolbar to display text ToolBar.showcaption: = true; 2. Set Toolbutton Size ImageList.WidthImageList.Height3. Settings Menu Association 4. Set the Runtime Display Icon (This is the key) ToolButton.Menuitum.ImageIndex To ensure that Menuitem MainMenu does not set image, otherwise, Icon is displayed at the same time in MENU

转载请注明原文地址:https://www.9cbs.com/read-61728.html

New Post(0)