With C4D-Msg you can control your system messages quickly, easily and centrally
- Installation using the TMS Smart Setup:
tms install c4d.msg
Tip
The c4d.msg file is located on the Community server, which is disabled by default. On a machine where it hasn't been enabled yet, run the following first: tms server-enable community
- Manual installation: Open your Delphi and add the following folder to your project, under Project > Options > Resource Compiler > Directories and Conditionals > Include file search path
C4D-Msg\Src
- Add uses to your system:
uses
C4D.Msg;
- Information message:
ShowMsg('My message', 'More details (optional)');
- Warning message:
ShowWarning('My message', 'More details (optional)');
- Success message:
ShowSuccess('My message', 'More details (optional)');
- Error message:
ShowError('My message', 'More details (optional)');
- Permission message:
ShowPermission('My message', 'More details (optional)');
- Obligatory message:
ShowObligatory('My message (optional)', 'More details (optional)');
- Empty message:
ShowEmpty('My message', 'More details (optional)');
- ShowQuestion:
if(ShowQuestion('My question', 'More details (optional)'))then
ShowSuccess('Responded Yes')
else
ShowError('Responded No');
- Next to the project sources, you will find a test project, in the folder:
C4D-Msg\Samples
To submit a pull request, follow these steps:
- Fork the project
- Create a new branch (
git checkout -b minha-nova-funcionalidade) - Make your changes
- Make the commit (
git commit -am 'Functionality or adjustment message') - Push the branch (
git push origin Message about functionality or adjustment) - Open a pull request