Code Monkey home page Code Monkey logo

fmx-toast's Introduction

fmx-toast

Delphi Supported Versions Platforms

Simple customized toast for firemonkey.

Prerequisites

  • [Alcinoe] For this project I used Alcinoe controls. You can dowload and install the component here. You can use native controls like TRectangle, TLayout. I prefer Alcinoe because the visual look better than Delphi components, and is more fast too. Take a time to read about Alcinoe lib.

  • [Optional] For ease I recommend using the Boss (Dependency Manager for Delphi) for installation.

Boss Installation

boss install github.com/mateusvicente100/fmx-toast

Manual Installation

If you choose to install manually, simply add the following folders to your project, in Project > Options > Resource Compiler > Directories and Conditionals > Include file search path

../fmx-toast/src

Getting Started

All features offered by this project are located in the unit FMX.Toast. To get your project started, simply add your reference where your functionality is needed. Here's an example:

uses FMX.Toast;

To create a new toast you must use the class function "New". It will return a new instance of TToast. You can simple use four comands:

begin
  TToast.New(Self).Error('This is a simple error toast message!');
  TToast.New(Self).Info('This is a simple info toast message!');
  TToast.New(Self).Success('This is a simple success toast message!');
  TToast.New(Self).Warning('This is a simple warning toast message!');
end;

Parameters

  • AOwner - Indicates the owner of the toast. It will be where the controls will appear;

The toast instance will be destroyed after the controls dissaper. If you touch in the toast you close he.

Samples

Check out our sample project for each situation presented above in operation. If you have any questions or suggestion, please contact, make your pull request or create an issue.

fmx-toast is free and open-source software licensed under the MIT License.

fmx-toast's People

Contributors

mateusvicente100 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.