Skip navigation.
 
mlNSPanel with just a close button & title on title bar?
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

Related mailsAuthorDate
mlNSPanel with just a close button & title on title bar? Ken Tabb Nov 18, 17:50
mlRe: NSPanel with just a close button & title on title bar? Ricky Sharp Nov 18, 19:17
mlRe: NSPanel with just a close button & title on title bar? Andreas Mayer Nov 18, 20:20
mlRe: NSPanel with just a close button & title on title bar? Peter Maurer Nov 19, 08:40
mlRe: NSPanel with just a close button & title on title bar? Ken Tabb Nov 19, 12:05
mlRe: NSPanel with just a close button & title on title bar? Ryan Stevens Nov 19, 17:38
mlRe: NSPanel with just a close button & title on title bar? Evan Schoenberg Nov 19, 22:39
mlRe: NSPanel with just a close button & title on title bar? M. Uli Kusterer Nov 22, 08:53
mlRe: NSPanel with just a close button & title on title bar? Ryan Stevens Nov 22, 15:33
mlRe: NSPanel with just a close button & title on title bar? M. Uli Kusterer Nov 23, 22:36