GithubHelp home page GithubHelp logo

ricklibrarys's Introduction

RICKLibrary

RICKLibrary is a library for Delphi. Using delphi's Fluent Interface.

⚙️ Pre-requisites

  1. Delphi FMX
  2. If you choose to use BOOS https://github.com/ricksolucoes/boss or https://github.com/HashLoad/boss the dependency manager, you will have the facility to install all frameworks that are Pre-requisites for the project.

💻 Installation

  • By using BOOS
$ boss install https://github.com/ricksolucoes/RICKLibrary
  • Manual Installation
    • Download the RICKLibrary;
    • Add the following folders to your project, in Project > Options > Resource Compiler > Directories and Conditionals > Include file search path ../RICKLibrary/src

⚡️ How to use the project

Example of using the RICKLibrary

  • Show Keyboard
  uses
    RICK.Librarys;
  begin
    TRICKLibrarys.New.ShowKeyboard(edtData);
  end;
  • Hide Keyboard
  uses
    RICK.Librarys;
  begin
    TRICKLibrarys.New.HideKeyboard(edtData);
  end;
  • Other actions
  uses
    RICK.Librarys,
    RICK.Librarys.Interfaces;
  var
    LRICKLibrarys: iRICKLibrarys;
  begin
    LRICKLibrarys := TRICKLibrarys.New;

    case cbxDataFormat.ItemIndex of
      0:
        if LRICKLibrarys.StringInSet(edtData.Text.ToLower, ['ok', 'cancel']) then
          lblResult.Text:= 'There is'
        else
          lblResult.Text:= 'Does Not Exist';
      1:
        lblResult.Text:= LRICKLibrarys.OnlyNumber(edtData.Text);
      2:
        lblResult.Text:= LRICKLibrarys.Mask('###-###', edtData.Text);
      3:
        lblResult.Text:= LRICKLibrarys.IEFormat(edtData.Text, 'RJ');
      4:
        lblResult.Text:= LRICKLibrarys.FormatValue(edtData.Text);
      5:
        lblResult.Text:= LRICKLibrarys.FormatDate(edtData.Text);
      6:
        lblResult.Text:= LRICKLibrarys.FormatDate(edtData.Text, True);
      7:
        lblResult.Text:= LRICKLibrarys.FormatPeso(edtData.Text);
      8:
        LRICKLibrarys.DelayedSetFocus(edtData);

    end;

ricklibrarys's People

Contributors

ricksolucoes avatar

Stargazers

Fabilson Simão de Lima avatar

Watchers

 avatar

Forkers

atkins126

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.