List Info

Thread: Native menus: events - status




Native menus: events - status
user name
2006-07-29 21:40:57
Hi again,

I updated my patch for native menus and fixed almost all
problems Stephan
found (thanks again :

http://tmp.janik.c
z/OpenOffice.org/MacOSX/menus-working/aquavcl01-complete-men
us-20060729.diff

Differences are described below.

- member variables renamed accordingly (at least I hope so)

- checking user data associated with menus

- destroying menus (e.g. when we close the application with
red "close"
  button)

- using properties instead of RefCons to pass back-pointers
(user data)

  I had to add two new constants to inc/aquavcltypes.h:

  // Constants for menu property back pointers passing
  #define APP_PROPERTY_CREATOR 'OOo2'
  #define APP_PROPERTY_TAG_MENU_POINTER 'mptr'

  The first one is the Creator of properties and the second
one is for
  distinguishing properties. OK? I think we will have to
rename it later,
  because at least 'OOo2' will be used more often for
other purposes as
  well

- removing mnemonics ("~") from menu items

- RemoveItem now works

  - I added menu item "Remove itself from menu"
as a demo in svdem


My current TODO regarding menus and aquavcl01:

   - fix bHandleAllCurrentEvents handling (compare with
Windows
     implementation)

   - resync aquavcl01 (implement or fake
GetDisplayScreenCount and
     GetDisplayScreenPosSizePixel)

   - setting menu bars according to active menu (svtool's
svdem)

     - frames without menu bar should display empty
application menu part
       of system menu bar (SetRootMenu and NULL or ?)

   - investigate crash in svdem's Calendar - popup menus

   - have a look at tooltips provided by Carbon Menu Manager
- can they be
     useful? Low prio.

   - menu activation and deactivation events + example code
for svdem to
     print something
-- 
Pavel Janík

Ask three people which VM is best, and you will get four
answers ;)
                  -- Hubert Mantel about VM in 2.4.x

------------------------------------------------------------
---------
To unsubscribe, e-mail: mac-unsubscribeporting.openoffice.org
For additional commands, e-mail: mac-helpporting.openoffice.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )