Recent

Author Topic: Is possible many imagelist to main menu?  (Read 1042 times)

Borneq

  • Full Member
  • ***
  • Posts: 248
Is possible many imagelist to main menu?
« on: January 02, 2020, 09:18:24 pm »
Main menu can be a quite big: 10 menu popups x 10 items
Aftter putting Icons to imagelist is impossible add incon inside without renaming all actions.
Each actionlist can have own imagelist but unfortunately main menu has own one imagelist  which is preferred.
How I can have posssibility extend submenus?
- leaving gaps in imagliist?
- make many imagelists and dinamic fill one imagelist?

ASerge

  • Hero Member
  • *****
  • Posts: 2510
Re: Is possible many imagelist to main menu?
« Reply #1 on: January 02, 2020, 11:29:25 pm »
Aftter putting Icons to imagelist is impossible add incon inside without renaming all actions.
Each actionlist can have own imagelist but unfortunately main menu has own one imagelist  which is preferred.
How I can have posssibility extend submenus?
- leaving gaps in imagliist?
- make many imagelists and dinamic fill one imagelist?
First. TMenuItem has property SubMenuImages. In this case only subitems of this item will use the new image list.
Second. The icon index can be any. You add a new icon to the end, and use the resulting index in a new menu item that is "inside"

 

TinyPortal © 2005-2018