Skip to content

HemulGM/VCLTaskBarToFMX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VCLTaskBarToFMX

Example

uses HGM.TaskBar;

procedure TForm3.FormCreate(Sender: TObject);
begin
  FTaskBar := TTaskbar.Create(Self);
  FTaskBar.OnThumbButtonClick := FOnThumbClick;
  FTaskBar.ProgressState := TTaskBarProgressState.Normal;
  FTaskBar.ProgressMaxValue := 100;
  FTaskBar.ProgressValue := 32;
  FTaskBar.TaskBarButtons.BeginUpdate; //important (lock of update for buttons)
  try
   with FTaskBar.TaskBarButtons.Add do
   begin
     Icon.LoadFromFile('image.ico');
     Hint := '123';
   end;
  finally
    FTaskBar.TaskBarButtons.EndUpdate;
  end;
  
  // call this, if you create buttons dynamicly (update added buttons)
  //FTaskBar.Initialize;
  //FTaskBar.ApplyButtonsChanges;
end;

procedure TForm3.FOnThumbClick(Sender: TObject; AButtonID: Integer);
begin
  ShowMessage(AButtonID.ToString);
end;

HGMComponents

About

VCL TaskBar to FMX Application

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages