From: "hns@computer.org"
<hns@computer.org>
To: discuss-gnustep@gnu.org
Sent: Monday, January 19, 2009 1:54:51 AM
Subject: Re: Impelmenting NSWindows95InterfaceStyle
On 19 Jan., 04:57, Germán Arias <
ger...@xelalug.org> wrote:
> Hi, after inspect the source of NSMenu.m and others files. I think that
> I can try to implement the option NSWindows95InterfaceStyle. I have one
> idea to do that, and I want know what do you think about this.
>
> Well, I think that the most easy and elegant way to implement this is
> make a new window with the horizontal menu and with a standard toolbar.
> In others words, don't put the menu in an app's window. Instead this,
> make a new window (main window) to set the horizontal menu. For example,
> if an app is like this
>
> _____
> |Menu |
> | |
> | | ____________________________________
> | |
|___________________________________|
> |_____| | |
> | |
> | |
> | |
> | App's window |
> |
|
> | |
> | |
> | |
> |___________________________________|
>
> After set NSWindows95InterfaceStyle, the app's look will by like this
>
> __________________________
> |_Main window_____________|
> | <-- Menu -- >
|
> |_________________________|
> | <- a standard |
> | toolbar --> |
> |_________________________|
>
> ________________________________________
> |________________________________________|
> | |
> | |
> | |
>
| |
> | App's window |
> | |
> | |
> | |
> |
|
> |________________________________________|
>
> To my this is an elegant solution, because make an horizontal menu and,
> at the same time, conserve a distinctive look. In other hand, there are
> many apps that implements that look, familiar to many people. Of course,
> the programmer will by able to set his own toolbar in the main menu.
>
> What do you think about this idea?
I had suggested before (maybe my mail got lost) to implement -
[NSWindow setMenu:] so that it simply adds a horizontal menu between
the menu title and the window's toolbar.
This would allow to add window menus to any application and interface
style. And to have different menus for each window
The only critical aspects I see are
* you can't define the menu in Interface Builder
* GORM
may need an extension
* or the application must set up the menu programmatically
* the standard Application Menu still appears
-- hns
_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.orghttp://lists.gnu.org/mailman/listinfo/discuss-gnustep