Page 1 of 1

ownerdraw on menu

Posted: Tue Dec 03, 2019 3:00 pm
by omni
roger,

Hope I make sense on this. A person here asked me this.

When using ownerdraw and assign the item:

SUBBARCOLOR &QQBARF,&QQBARB ; (those are our assigned colors)

Where we define the foreground (font color) and background.

The selection on the menu that is hilited is the same as the background on the subbarcolor. Is that something that is fixed.
We have a shade of yellow as the background and black as foreground on the subbarcolor, when the menu option is hilited/selected the color is always yellow on black, or whatever the background is assigned to on subbarcolor. (looks fine and has for many years)
So, if we go to black background with yellow foreground on the subbarcolor it is then black on black on the selection..obviously does not work.
Just want to confirm that it is fixed that way and no method to override on the selection color on the menu items when using ownerdraw. Does not impact anything else, just what the user is hiliting/selecting.

Hope that the question is understandable.

Thanks

Fred
Omni

Re: ownerdraw on menu

Posted: Tue Dec 03, 2019 4:05 pm
by rdonnay
I guess that had never been tested.

I'm reluctant to make changes to the code after so many years of nobody reporting problems with this. If I change how it works, then I may break a lot of applications.

Re: ownerdraw on menu

Posted: Tue Dec 03, 2019 4:17 pm
by omni
No, not a problem. Just making sure I was not missing out on a known command or not.
Thanks