Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion how to embed a icon in title bar in Mac OSX

Received: by 10.180.80.71 with SMTP id p7mr604030wix.4.1353029965267;
        Thu, 15 Nov 2012 17:39:25 -0800 (PST)
X-BeenThere: wx-users@googlegroups.com
Received: by 10.180.73.143 with SMTP id l15ls69813wiv.1.canary; Thu, 15 Nov
 2012 17:39:21 -0800 (PST)
Received: by 10.180.74.79 with SMTP id r15mr600970wiv.4.1353029961278;
        Thu, 15 Nov 2012 17:39:21 -0800 (PST)
Received: by 10.180.74.79 with SMTP id r15mr600969wiv.4.1353029961265;
        Thu, 15 Nov 2012 17:39:21 -0800 (PST)
Return-Path: <va...@wxwidgets.org>
Received: from smtp.tt-solutions.com (sunset.tt-solutions.com. [82.238.156.189])
        by gmr-mx.google.com with ESMTPS id m2si11197wiz.3.2012.11.15.17.39.21
        (version=TLSv1/SSLv3 cipher=OTHER);
        Thu, 15 Nov 2012 17:39:21 -0800 (PST)
Received-SPF: neutral (google.com: 82.238.156.189 is neither permitted nor denied by best guess record for domain of va...@wxwidgets.org) client-ip=82.238.156.189;
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 82.238.156.189 is neither permitted nor denied by best guess record for domain of va...@wxwidgets.org) smtp.mail=va...@wxwidgets.org
Received: from [192.168.17.86] (helo=Twilight)
	by smtp.tt-solutions.com with esmtp (Exim 4.72)
	(envelope-from <va...@wxwidgets.org>)
	id 1TZAts-0004gg-KA
	for wx-users@googlegroups.com; Fri, 16 Nov 2012 02:39:20 +0100
Message-Id: <E1TZAts-0004gg-KA@smtp.tt-solutions.com>
Date: Fri, 16 Nov 2012 02:39:16 +0100
From: Vadim Zeitlin <va...@wxwidgets.org>
Subject: Re: how to embed a icon in title bar in Mac OSX
To: wx-users@googlegroups.com
MIME-Version: 1.0
Content-Type: MULTIPART/SIGNED; protocol="application/pgp-signature"; micalg=pgp-sha1; BOUNDARY="217192298-41-1353029956=:3944"
References: <F5922C77-2E40-49C5-BC6D-925D48126491@gmail.com>
In-Reply-To: <F5922C77-2E40-49C5-BC6D-925D48126491@gmail.com>
X-Mailer: Mahogany 0.68.0 'Cynthia', running under Windows 7 (build 7601, Service Pack 1), 64-bit edition

--217192298-41-1353029956=:3944
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-Disposition: INLINE

On Fri, 16 Nov 2012 07:19:35 +0800 songhf wrote:

s> i want to embed a icon in the tittle bar of my app window  just like
s> Finder App. But i could not find a way to do that. Does anyone have a
s> clue about it?

 This is not supported by wx because this is not portable anyhow, but you
should be able to do it relatively easily using Cocoa directly under OS X.
Searching for the relevant keywords will find many examples of doing it,
basically you just need to retrieve an existing standard button from the
title bar, get its superview and then add your custom view to it.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/

--217192298-41-1353029956=:3944
Content-Type: APPLICATION/PGP-SIGNATURE

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)

iEYEABECAAYFAlClmUQACgkQBupB3k9sHoabgACeM15wZ8S1s/yisvRK1GX65aay
IpMAn3PnX4qO7V6QStdcsXhPvZEwfEDr
=aRbR
-----END PGP SIGNATURE-----

--217192298-41-1353029956=:3944--