Recent

Author Topic: LAMW: AppCompat - jTabLayout.SetTabMode  (Read 846 times)

c4p

  • Full Member
  • ***
  • Posts: 170
LAMW: AppCompat - jTabLayout.SetTabMode
« on: June 24, 2023, 08:47:40 pm »
Posting this in the hope it's useful, couldn't see any reference to this in any of the demos or forum:

I was wanting to get scrollable tabs, so this was the correct syntax:
Code: Pascal  [Select][+][-]
  1. jTabLayout1.SetTabMode(tmScrollable);
Or Fixed tabs:
Code: Pascal  [Select][+][-]
  1. jTabLayout1.SetTabMode(tmFixed);
tmFixed is the default.
« Last Edit: June 25, 2023, 04:25:46 pm by c4p »
Lazarus 2.0.12 r64642/FPC 3.2.0 LAMW v0.8.6.4 on Windows 10+Linux Mint 21.2, projects mainly built using AppCompat and Gradle.

 

TinyPortal © 2005-2018