FROM : Ken Tabb
DATE : Thu Nov 18 17:50:48 2004
Hi folks,
I have a very narrow but tall tool palette (NSPanel utility window)
that needs to have "Tools" written in its title bar, and a single red
close button. If I design the panel in IB, and only check "close box"
(not miniaturise or resize) I still get all 3 on the title bar, albeit
miniaturise & maximise are disabled (but they still take up valuable
title bar space).
If I attempt the same thing programmatically, using [[NSPanel alloc]
initWithContentRect:styleMask:backing:defer:] I end up with the same
situation... the 2 redundant & disabled buttons push the title "Tools"
half off the edge of the window's title bar.
I searched mamasam and someone in 2002 had this problem but the only
solution known at the time was to do a Carbon panel. Has anything been
improved since 2002 does anyone know?
Doesn't it make sense for some types of utility window to not have
mini/maxi buttons? I mean, a disabled button infers to the user that
for that specific window it may one day become enabled (otherwise it
wouldn't be there), yet in my case it will never be enabled for this
little puppy.
Thanks in advance for your help,
Ken
- - - - - - - - - -
Dr. Ken Tabb
Mac & UNIX Developer - Health & Human Sciences
Machine Vision & Neural Network researcher - School of Computer Science
University of Hertfordshire, UK
http://www.health.herts.ac.uk/ken/
Certified non-Microsoft Solution Provider
DATE : Thu Nov 18 17:50:48 2004
Hi folks,
I have a very narrow but tall tool palette (NSPanel utility window)
that needs to have "Tools" written in its title bar, and a single red
close button. If I design the panel in IB, and only check "close box"
(not miniaturise or resize) I still get all 3 on the title bar, albeit
miniaturise & maximise are disabled (but they still take up valuable
title bar space).
If I attempt the same thing programmatically, using [[NSPanel alloc]
initWithContentRect:styleMask:backing:defer:] I end up with the same
situation... the 2 redundant & disabled buttons push the title "Tools"
half off the edge of the window's title bar.
I searched mamasam and someone in 2002 had this problem but the only
solution known at the time was to do a Carbon panel. Has anything been
improved since 2002 does anyone know?
Doesn't it make sense for some types of utility window to not have
mini/maxi buttons? I mean, a disabled button infers to the user that
for that specific window it may one day become enabled (otherwise it
wouldn't be there), yet in my case it will never be enabled for this
little puppy.
Thanks in advance for your help,
Ken
- - - - - - - - - -
Dr. Ken Tabb
Mac & UNIX Developer - Health & Human Sciences
Machine Vision & Neural Network researcher - School of Computer Science
University of Hertfordshire, UK
http://www.health.herts.ac.uk/ken/
Certified non-Microsoft Solution Provider
| Related mails | Author | Date |
|---|---|---|
| Ken Tabb | Nov 18, 17:50 | |
| Ricky Sharp | Nov 18, 19:17 | |
| Andreas Mayer | Nov 18, 20:20 | |
| Peter Maurer | Nov 19, 08:40 | |
| Ken Tabb | Nov 19, 12:05 | |
| Ryan Stevens | Nov 19, 17:38 | |
| Evan Schoenberg | Nov 19, 22:39 | |
| M. Uli Kusterer | Nov 22, 08:53 | |
| Ryan Stevens | Nov 22, 15:33 | |
| M. Uli Kusterer | Nov 23, 22:36 |






Cocoa mail archive

