Set different bezel styles for controls - Tried on buttons and textfields

//This code should be placed in the OPEN event handler for the control whose bezel you wish to change the style of: declare sub setBezelStyle lib "Cocoa" selector "setBezelStyle:" ( handle as integer, value as integer ) setBezelStyle( me.handle, NSRoundedBezelStyle ) //The NSRoundedBezelStyle in the call above can be changed to one of the following constants. Ensure you declare these constants within your project before using them. NSRoundedBezelStyle = 1, NSRegularSquareBezelStyle = 2, NSThickSquareBezelStyle = 3, NSThickerSquareBezelStyle = 4, NSDisclosureBezelStyle = 5, NSShadowlessSquareBezelStyle = 6, NSCircularBezelStyle = 7, NSTexturedSquareBezelStyle = 8, NSHelpButtonBezelStyle = 9, NSSmallSquareBezelStyle = 10, NSTexturedRoundedBezelStyle = 11, NSRoundRectBezelStyle = 12, NSRecessedBezelStyle = 13, NSRoundedDisclosureBezelStyle = 14, NSInlineBezelStyle = 15, NSSmallIconButtonBezelStyle = 2

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.