Mac Os X - Carbon: TButton can't have focus
Original Reporter info from Mantis: Stefano
-
Reporter name: Stefano
Original Reporter info from Mantis: Stefano
- Reporter name: Stefano
Description:
Hello,
on Mac Os X with the Carbon Interface, the buttons cannot have focus.
The code:
Button1.SetFocus;
oder;
Self.ActiveControl := Button1;
doesn't work. There are no errors during the compilation, simply the button cannot receive Focus.
Moreover, I cannot move between the buttons with Tab. When I click on a button, this button has no focus.
May be it is the Carbon Interface (and not Lazarus) that do so and doesn't allow to the buttons to have the focus?
It would be very useful that the behaviours of the buttons is the same under Mac als under Linux or Windows, in order to allow a better portability of the code.
Often I put the focus on a "Ok" button, so the user can press Invio to confirm, without be forced to use the mouse.
Best regards,
Stefano
Mantis conversion info:
- Mantis ID: 23276
- Version: 1.0.2