Page 1 of 1

Icon of a DCMENUITEM

Posted: Sun Aug 29, 2021 8:42 pm
by Diego Euri Almanzar
Hi!
Icon of a DCMENUITEM.
Is it possible to place an icon or bmp next to the pront or title of a DCSUBMENU, or DCMENUITEM?

Best regards

Re: Icon of a DCMENUITEM

Posted: Mon Aug 30, 2021 4:10 am
by Tom
DCMENUITEM ... BITMAP <nBitmap> shows the bitmap linked with the ressource number <nBitmap> to your app at a DCMENUITEM. AFAIK, there are still no icons supported, even with ownerdrawing.

Re: Icon of a DCMENUITEM

Posted: Tue Aug 31, 2021 8:33 pm
by Diego Euri Almanzar
[BITMAP <nBm UnChecked> [, <nBm Checked>]]

In Express help, I read about the BITMAP option. But, from your description, I thought you could only use checkboxes.

I will try with any bitmap.

I am very grateful for your help, Tom.

Best regards

Re: Icon of a DCMENUITEM

Posted: Wed Sep 01, 2021 5:17 am
by Tom
Hi, Diego.

If you only add one bitmap, it will always show this bitmap. If you add two bitmaps, the first will be shown if the menu item is not checked or doesn't have the CHECKED/CHECKWHEN-clause, and the other one vice versa. Remember that bitmaps on DCMENUITEMS only show up if the menu is a direct child of a menu bar (or doesn't have a parent, like a flyout/context menu). The docs aren't very precise here. 8-)
I am very grateful for your help, Tom.
It's a pleasure.