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
Icon of a DCMENUITEM
-
- Posts: 174
- Joined: Thu Nov 05, 2020 10:51 am
- Location: DOMINICAN REPUBLIC
Re: Icon of a DCMENUITEM
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.
Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
-
- Posts: 174
- Joined: Thu Nov 05, 2020 10:51 am
- Location: DOMINICAN REPUBLIC
Re: Icon of a DCMENUITEM
[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
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
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.
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.
It's a pleasure.I am very grateful for your help, Tom.
Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."