Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-03

Mantis issue 0015565 - GTK2: Menu with big images

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

cobines

Hi,

The issue was marked as resolved, but is not yet fixed. I cannot reopen it nor add notes there, so I post here. I uploaded some files there though.

If doesn't work if there are images of different size in each menu item and if images are not square (see wrong2.png), I have uploaded another example to show that (example_rect_imgs.tar.bz2). Look at Form2 menus, in Main Menu and in Popup Menu.

I have uploaded another patch named patch02.diff (to rev. 23989). It lets GTK handle calculating toggle_size of each menu item and for the menu class. It returns size of the "toggle" icon based on image size on 'toggle-size-request' signal. Also I have made a small change to drawing icon, it now calculates left position the same as in GTK2.

cobines

Reply by email

Maxim Ganetsky
to cobines

14.03.2010 20:29, cobines ?????:

Show quoted text 5 lines
Hi, The issue was marked as resolved, but is not yet fixed. I cannot reopen it nor add notes there, so I post here. I uploaded some files there though.

I have reopened the issue.

Best regards, Maxim Ganetsky mailto:

Reply by email