Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

FMX.Pickers.Helper

[FireMonkey] FMX.Pickers.Helper - helper for create native Pickers

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

FMX.Pickers.Helper

Platforms - Android/IOS/Windows/MACOS
pascal
var
  // uses FMX.Pickers;
  FPickerList: TCustomListPicker;
  FPickerDate: TCustomDateTimePicker;
  FPickerTime: TCustomDateTimePicker;

Native List Picker

pascal
  Setlength(FPickerListValues, 3);
  FPickerListValues[0] := 'aaa';
  FPickerListValues[1] := 'bbb';
  FPickerListValues[2] := 'ccc';

  TmyPicker.ListFree(FPickerList);
  FPickerList := TmyPicker.ListShow(FPickerListValues, btList, PickerListClick);

Native Date Picker

pascal
  TmyPicker.DateFree(FPickerDate);
  FPickerDate := TmyPicker.DateShow(btDate, StrToDateDef(lbDateValue.Text, now), PickerDateClick);

Native Time Picker

pascal
  TmyPicker.TimeFree(FPickerTime);
  FPickerTime := TmyPicker.TimeShow(btTime, now, PickerTimeClick);