Adding button styles to cocoa.macos.m?

BlitzMax Forums/BlitzMax Programming/Adding button styles to cocoa.macos.m?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Well, I'm doing something I probably shouldn't, but I just can't help myself! :-)

I've poking around in cocoa.macos.m around line 1618, and I want to add a few
buttons styles.

First one is "NSTexturedSquareBezelStyle" which does work, as I already tried
it by replacing "BUTTON_PUSH"'s style with the "NSTexturedSquareBezelStyle"
style. Kind of cool seeing the metal button style on a BlitzMax app :-)

But! If I try to add
if (style==BUTTON_METAL) [button setBezelStyle:NSTexturedSquareBezelStyle];

I get an notice that I must declare BUTTON_METAL. So I opened up maxgui.h
and added
#define BUTTON_METAL 6

just after
#define BUTTON_PUSH 1
#define BUTTON_CHECKBOX 2
#define BUTTON_RADIO 3
#define BUTTON_OK 4
#define BUTTON_CANCEL 5

and of course, it didn't work :-( I tried browsing around the mods and sources
a bit to see if I could find any other references to the buttons, but can't find
anything.

Does anyone know what else I need to do, to get the additional style working
without having to replace a current style?

Thanks for any help or info,
-Garrett