discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Impelmenting NSWindows95InterfaceStyle


From: address@hidden
Subject: Re: Impelmenting NSWindows95InterfaceStyle
Date: Sun, 18 Jan 2009 22:54:51 -0800 (PST)
User-agent: G2/1.0

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]