kokoye2007 / waitzar

Automatically exported from code.google.com/p/waitzar
Other
0 stars 1 forks source link

User-drawn menus for the "Typing" popup. #100

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, we use "AddMenu()", which is deprecated. The function
"InsertMenuItem()" is preferred; we might try using that.

Regardless, we have to create user-drawn menus:
http://msdn.microsoft.com/en-us/library/ms647558%28VS.85%29.aspx#_win32_Creating
_Owner_Drawn_Menu_Items

The reasons:
  1) We want the "heading" of each column (e.g., "Language") to look more
like a heading (dark bkgrd, etc.)
  2) We allow UTF-8 text for menu item names, but we don't handle Burmese
display properly (yet). With user-drawn menus, we can use any font at all.
  3) While we're at it, let's add Encoding pictures, and change the display
of radio buttons. In other words, neaten up the whole displa.

We should still use the System font IF the language name contains no
Burmese. Otherwise, we should use, e.g., Padauk.

Note that, as a side-effect of our TTF-display-method, we will already
require loading of a local TTF file (which can easily be embedded). So we
can use that to draw our user-defined menus. (Note: If Padauk is too big
even after compressing, we can use that smaller web-enabled version of Padauk.)

Original issue reported on code.google.com by seth.h...@gmail.com on 8 Feb 2010 at 7:57

GoogleCodeExporter commented 9 years ago
NOTE: Also make sure to cache the config file's settings, since building the 
menus
each time is time-consuming. 

Original comment by seth.h...@gmail.com on 24 Feb 2010 at 5:08

GoogleCodeExporter commented 9 years ago
Here's a guide on loading a process-private font from a resource stream:
http://msdn.microsoft.com/en-us/library/dd183325%28VS.85%29.aspx

Original comment by seth.h...@gmail.com on 7 Mar 2010 at 2:16

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Done (technically any DisplayManager will do.... perhaps we'll add a config 
option
later? Anyway, it's done now.)

Original comment by seth.h...@gmail.com on 18 Mar 2010 at 5:42