Mercurial > dwindows
comparison ios/dw.m @ 2577:6fdab466d7a2
Android: Fix notebook page change event page always being 0.
iOS: Commit a lingering DWMenu fix, menubar might not initialize array.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 22 May 2021 10:00:31 +0000 |
parents | 2c2941e01b67 |
children | 1d2f5c4eccc5 |
comparison
equal
deleted
inserted
replaced
2576:db097ec28c90 | 2577:6fdab466d7a2 |
---|---|
7579 * location: Handle of a window frame to be attached to. | 7579 * location: Handle of a window frame to be attached to. |
7580 */ | 7580 */ |
7581 HMENUI API dw_menubar_new(HWND location) | 7581 HMENUI API dw_menubar_new(HWND location) |
7582 { | 7582 { |
7583 DWWindow *window = location; | 7583 DWWindow *window = location; |
7584 DWMenu *menu = [[[DWMenu alloc] init] retain]; | 7584 DWMenu *menu = [[[DWMenu alloc] initWithTag:0] retain]; |
7585 | 7585 |
7586 [window setMenu:menu]; | 7586 [window setMenu:menu]; |
7587 return menu; | 7587 return menu; |
7588 } | 7588 } |
7589 | 7589 |