Peter Kloß
Peter Kloß

Reputation: 121

Labels and buttons do not work with tabs in Firemonkey

I want to use tabs in a FMX form. In VCL all is functioning as expected. In FMX I tried tabs with labels and buttons without success. HitTest is true, no other controls are on the form. The surrounding frame does not appear and pressing the TAB key does nothing. With edit fields it is working. Did I miss something? Current system is Windows 11 Pro 21H2 and Delphi 10.4.2.

Upvotes: 0

Views: 297

Answers (1)

Philip J. Rayment
Philip J. Rayment

Reputation: 1210

To tab to a TLabel, set its CanFocus property to True. As this property is public, not published, you'll need to do that in code, such as in the form's OnCreate event or by overriding the form's Loaded method.

Upvotes: 1

Related Questions