Recent

Author Topic: Tmenuitem of TpopopMenu  (Read 546 times)

cpalx

  • Hero Member
  • *****
  • Posts: 746
Tmenuitem of TpopopMenu
« on: October 03, 2023, 08:07:03 pm »
is it posible to change the height of Tmenuitem, i mean i need to put an image with size 16x16 or 22x22

ASerge

  • Hero Member
  • *****
  • Posts: 2142
Re: Tmenuitem of TpopopMenu
« Reply #1 on: October 03, 2023, 10:32:08 pm »
is it posible to change the height of Tmenuitem, i mean i need to put an image with size 16x16 or 22x22
Its size is equal to the size of the ImageList associated with the menu.
Or do you need different sizes at the same time?

paweld

  • Hero Member
  • *****
  • Posts: 852
Re: Tmenuitem of TpopopMenu
« Reply #2 on: October 03, 2023, 11:06:26 pm »
In the OnMeasureItem event, you can specify the height of the item. You can assign the event to both the entire menu and specific items.
Sample in attchment.
Best regards / Pozdrawiam
paweld

cpalx

  • Hero Member
  • *****
  • Posts: 746
Re: Tmenuitem of TpopopMenu
« Reply #3 on: October 05, 2023, 03:25:56 am »
Thanks guys, 

 

TinyPortal © 2005-2018