I need to add the Coverflow, list and icon buttons to a toolbar, much like Apple does in Finder and iTunes. See image:
I am compiling to Cocoa. Yes I know it's in Beta but everything is working for me so far in this app and I'm trying not
to rely on outdated Carbon declares.
I know that REALbasic Toolbar class looks like the above toolbar but you can only add predefined toolbar buttons with a custom icon. I would like to be able to draw to the toolbar (obviously not possible). I have been tinkering around and have found that if I set the Window's Frame property to 'Metal' then I can simply draw my custom buttons to the top of the window and 'fake' a toolbar. Not a big deal - it actually works really well, see below:
The problem is that if I drag anywhere on the window, the entire window is dragged around the screen! I'm guessing this is the expected behaviour for a metal window but I'm wondering if:
A) There is any whay to turn off this dragging property so that the metal window behaves like a normal document window.
B) Failing the above, is there a way to draw a custom frame to mimic the Textured window look?
Sorry for the long question but this is a big deal in terms of making apps that look like Apple's native ones and that compile with Cocoa
. Do any Cocoa declares exist??