Catalog · How the catalog works
RICKLibrarys
Library with various functions for delphi
- ★ 1 on GitHub
Anyone may press Interesting, signed in or not. It helps others find this project.
README
[0]: https://github.com/ricksolucoes/boss "Site do BOOS"
RICKLibrary
RICKLibrary is a library for Delphi. Using delphi's Fluent Interface.
⚙️ Pre-requisites
- Delphi FMX
- If you choose to use [BOOS][0]
https://github.com/ricksolucoes/boss or https://github.com/HashLoad/bossthe 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;
