Icon of a DCMENUITEM

This forum is for general support of Xbase++
Post Reply
Message
Author
Diego Euri Almanzar
Posts: 25
Joined: Thu Nov 05, 2020 10:51 am
Location: DOMINICAN REPUBLIC

Icon of a DCMENUITEM

#1 Post 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

User avatar
Tom
Posts: 873
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Icon of a DCMENUITEM

#2 Post 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.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

Diego Euri Almanzar
Posts: 25
Joined: Thu Nov 05, 2020 10:51 am
Location: DOMINICAN REPUBLIC

Re: Icon of a DCMENUITEM

#3 Post 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

User avatar
Tom
Posts: 873
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Icon of a DCMENUITEM

#4 Post 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.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

Post Reply