> On Dec 12, 2018, at 5:31 PM, Lars C. Hassing wrote:
>
> The button should look like
>
> +---+ +---+
> | 1 | Title | 2 |
> +---+ +—+
>
> (try using Courier for the ASCII art)
>
> I am looking for system functions to produce the SAME look and feel as Cocoa
> controls.
On 12 Dec 2018, at 01:03, Lars C. Hassing wrote:
>
> If I assign an image to an NSButton it is displayed with nice pressed and
> disabled effects.
>
> In my custom NSButton, that should display image1+title+image2, I override
> drawRect:, but how do I obtain the EXACT SAME system effects for
Clever idea creating an image with the two images and the title in it,
but then the title would be pressed/darkened too and not shown in white on blue
background…
/Lars
> Den 13. dec. 2018 kl. 01.46 skrev Jens Alfke :
>
>
>
>> On Dec 11, 2018, at 5:03 PM, Lars C. Hassing wrote:
>>
>> If I
> On Dec 11, 2018, at 5:03 PM, Lars C. Hassing wrote:
>
> If I assign an image to an NSButton it is displayed with nice pressed and
> disabled effects.
>
> In my custom NSButton, that should display image1+title+image2, I override
> drawRect:, but how do I obtain the EXACT SAME system
The button should look like
+---+ +---+
| 1 | Title | 2 |
+---+ +—+
(try using Courier for the ASCII art)
I am looking for system functions to produce the SAME look and feel as Cocoa
controls.
Motif, Windows and Carbon all have system functions to draw control parts in
If I assign an image to an NSButton it is displayed with nice pressed and
disabled effects.
In my custom NSButton, that should display image1+title+image2, I override
drawRect:, but how do I obtain the EXACT SAME system effects for the two images?
I plan to use NSImage