TCocoaButton.lclSetFrame() changes every button to have bezelstyle NSTexturedSquare or NSTexturedRounded
Original Reporter info from Mantis: djenkins @dfjenkins
-
Reporter name: David Jenkins
Original Reporter info from Mantis: djenkins @dfjenkins
- Reporter name: David Jenkins
Description:
When buttons are created, a bezel style is passed in and passed to Self.setBezelStyle. However, as soon as lclSetFrame() is called (which happens during autosizing) any bezel style set previously will be changed to NSTexturedRoundedBezelStyle or NSTexturedSquareBezelStyle.
One result is that base buttons never turn blue on click as expected with OSX.
Steps to reproduce:
Create a standard button.
Additional information:
I believe this code should be reworked so that it only operates on buttons that must absolutley be resized (TBitBtn?). Fixed height standard buttons is a part of OSX look and feel.
Mantis conversion info:
- Mantis ID: 32044
- OS: OSX
- Platform: Cocoa