Re: Font for a menu?
- From: "David Webber" <dave@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 10 Jan 2009 16:43:02 -0000
"Mihai N." <nmihai_year_2000@xxxxxxxxx> wrote in message news:Xns9B8EE5E072357MihaiN@xxxxxxxxxxxxxxxx
It does indeed help. I had missed this completely: I think the hardest
thing about MSDN is finding what is in there!
I did to carefully read the code, nor did I try it.
It's complicated to read: I think I'll have to build it and step through it.
But when you get to it, don't forget that you have to respect
the user preferences about showing or not showing the
quickeys (the underscore for keyboard access).
I wasn't aware this was a user option.
And I have just discovered that when I run my own software, I get pop-up context menus *with* underlines when I use the context-menu key on the keyboard, but *without* underlines when I right click. I *thought* I was generating them with the same code, so something needs looking into here :-(
In any case for my new proposed owner-draw menu, the underline feature will be of limited use. The menu (for musical readers) will be a list of chord names which have been used in the document. These are of the form C, Dm7, F#7b5b9, Ebº7, ... The menu is likely to list up to a dozen or two of them (I have yet to assess the efficacy of this as the number grows) and they'll all begin with the letters A-H, which will be the only character I can sensibly highlight when constructing a menu from an arbitrary set. So some use of the up/down arow keys will be required if the menu is used without the mouse.
BTW I have already implemented this with unicode text with the proper musical flat sign (in place of the b above) and no owner drawing required. But there are problems. I need other symbols:
- an upward triangle:the Greek capital delta works well.
- a double sharp sign: it's in the 4-byte section of UTF-16
and I haven't found any font with it. (I have to use x)
- a little circle in the air with a stroke through it.
(I haven't even located that in the unicode set!)
Also the flat symbol is very poorly spaced in the text which comes up. So I want to specify my own non-unicode symbols font which has all of these characters.
And the High Contrast Mode/High Contrast Scheme preferences:
http://blogs.msdn.com/oldnewthing/archive/2008/12/03/9167477.aspx
The Win Theme API might take care of it, but just in case...
That is something else I hadn't thought about. I need to win a few other battles before I get that far!
Dave
--
David Webber
Author of 'Mozart the Music Processor'
http://www.mozart.co.uk
For discussion/support see
http://www.mozart.co.uk/mozartists/mailinglist.htm
.
- Follow-Ups:
- Re: Font for a menu?
- From: Mihai N.
- Re: Font for a menu?
- References:
- Font for a menu?
- From: David Webber
- Re: Font for a menu?
- From: Joseph M . Newcomer
- Re: Font for a menu?
- From: David Webber
- Re: Font for a menu?
- From: Seetharam
- Re: Font for a menu?
- From: David Webber
- Re: Font for a menu?
- From: Mihai N.
- Font for a menu?
- Prev by Date: Re: CharFromPos
- Next by Date: Re: CString fails to take assignment
- Previous by thread: Re: Font for a menu?
- Next by thread: Re: Font for a menu?
- Index(es):
Relevant Pages
|