Lisp HUG Maillist Archive

The right way in CAPI to set button style and image on macos

What's the right way to set button style and image in CAPI on macOS?

I know I can do this by rummaging around in CAPI to get representations and making Objective-C calls on them—I;ve done it before—but I;d rather stick with public APIs if possible.

Specifically, I want to set the bezel styles of some buttons, and I want to set button images to some standard macOS-supplied icons (which are identified in framework code by Objective-C constants).

For the icons, if I have to, I can turn them into resource files and do the load-image thing, but I'd much rather use standard system and Lispworks APIs if possible.

Thanks for any insight.

—me


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html

Updated at: 2020-12-10 08:28 UTC