ModelMaker Code Explorer

Today I would like to recommend the ModelMaker Code Explorer (MMX) as a must-have IDE plugin. It allows to refactor, sort and organize the code. It also shows bad coding style like long methods, magic numbers and hard-coded strings.

Originally the MMX was a commercial product made by a Dutch company but it is now for free and it is maintained by a well-known Delphi MVP.

Posted in Delphi, Third Party Components, Tips and Tricks, Uncategorized | Comments Off on ModelMaker Code Explorer

Did you know…?

Did you know that you can get and set events with the TMethod record? Let’s assume you would like to hook an OnClose event of a form:

type
  TMyHookObject = class
  strict private
    FOldOnClose: TMethod;
    procedure OnClose(ASender: TObject; var AAction: TCloseAction);
...

procedure TMyHookObject.Init(AForm: TForm);
begin
  //Save the old event
  FOldOnClose := TMethod(AForm.OnClose);
  //Set the new one
  AForm.OnClose := OnClose;
end;

procedure TMyHookObject.OnClose(ASender: TObject; var AAction: TCloseAction);
begin
  //Call the old event
  if Assigned(FOldOnClose.Data) and Assigned(FOldOnClose.Code) then
    TCloseEvent(FOldOnClose)(ASender, AAction);
  
  //Run your own code
  ...

As you can see in the example you can easily store and call events with the help of TMethod.

Posted in Uncategorized | Comments Off on Did you know…?

Did you know…?

Did you know that inside Delphi designtime packages you can use all global Vcl variables like Application and Screen? Particularly the Screen variable is very interesting since it fires events like OnActiveFormChange and also offers the useful Forms collection.  The Forms collection allows to iterate through all IDE forms and the OnActiveFormChange event allows to react when a new form becomes active.

Posted in Delphi, RAD Studio 10 Seattle, RAD Studio 10.1 Berlin, RAD Studio 10.2 Tokyo, RAD Studio 10.3 Rio, RAD Studio 10.4 Sydney, RAD Studio XE5, RAD Studio XE6, RAD Studio XE7, RAD Studio XE8, Tips and Tricks, Uncategorized | Comments Off on Did you know…?

Did you know…?

Did you know that TMS Web Core projects allow to add further file types to a project? One example are .svg files, that are often used in web applications. That’s why the IDE plugin of TMS Web Core allows to add these file types.

Posted in Delphi, RAD Studio 10 Seattle, RAD Studio 10.1 Berlin, RAD Studio 10.2 Tokyo, RAD Studio 10.3 Rio, RAD Studio 10.4 Sydney, RAD Studio XE7, RAD Studio XE8, Tips and Tricks, TMS Software, TMS Web Core, Uncategorized | Comments Off on Did you know…?

20 Year Anniversary

Today is a wonderful day. It is the 20th anniversary of TMS Software. I’m sure that most of you know the TMS products like VCL UI Pack, FNC, Flexcel, BIZ and last but not least Web Core. Exactly 20 years ago, the CEO Bruno Fierens founded TMS and started the success story.

I’m very happy to be part of this great team. I have the opportunity to work with all these masterminds like Tünde, Bruno, Bart, Pieter, Gjalt, Holger, Wagner, Adrian, Jose, Marion, Bernard, Detlef, Mattias, Masiha, Michael and the other Roman. And I was allowed to improve products like Delphi, VSC, Web Core, FNC and BIZ.

My special thanks to Bruno to make all this happen and for the hours of discussing all technical stuff but also our passionate hobbies.

Posted in C++-Builder, Delphi, FireMonkey, HTML, RAD Studio 10 Seattle, RAD Studio 10.1 Berlin, RAD Studio 10.2 Tokyo, RAD Studio 10.3 Rio, RAD Studio 10.4 Sydney, RAD Studio XE5, RAD Studio XE6, RAD Studio XE7, RAD Studio XE8, Third Party Components, Tips and Tricks, TMS Software, Uncategorized, Visual Studio Code | Comments Off on 20 Year Anniversary

Did you know…?

Did you know that TMS Web Core supports record helpers for intrinsic types? They are located in the unit WEBLib.Utils and are compatible to the Delphi record helpers but support further methods like e.g.

if lString.NotIsEmpty then
begin
  ...
end;

This is more comfortable and object-oriented than the classic way and it also doesn’t need brackets like here:

if lVeryLongStatement and (not lString.IsEmpty) then
begin
  ...
end;
Posted in Delphi, RAD Studio 10 Seattle, RAD Studio 10.1 Berlin, RAD Studio 10.2 Tokyo, RAD Studio 10.3 Rio, RAD Studio 10.4 Sydney, RAD Studio XE7, RAD Studio XE8, Third Party Components, Tips and Tricks, TMS Software, TMS Web Core | Comments Off on Did you know…?

Did you know…?

Did you know that the TMS License Generator for TMS Web Core uses TMS FNC components? Not only under Windows

but also under MacOS

And it also adapts to the OS’s theme (dark/light). Please have a look at the MacOS light version:

Terrific!

We are always up-to-date with all components so that we just added the new TTMSFNCProgressBar!

Posted in RAD Studio 10 Seattle, RAD Studio 10.1 Berlin, RAD Studio 10.2 Tokyo, RAD Studio 10.3 Rio, RAD Studio 10.4 Sydney, RAD Studio XE5, RAD Studio XE6, RAD Studio XE7, Tips and Tricks, TMS Software, TMS Web Core, Uncategorized, Visual Studio Code | Comments Off on Did you know…?

Did you know…?

Did you know that each TMS Web project has its own project/options? As you can see in the screenshot below there is a new section “TMS Web” under the well-known project/options dialog.

To make it easy for you to use we designed it just like the project/options dialog of a VCL or FMX project. There is even a combobox at the top to configure your web project for each config.

So you can use your extensive knowledge from building VCL or FMX apps for TMS Web Core apps! Say ‘hello’ to the WWW!

Posted in Delphi, RAD Studio 10 Seattle, RAD Studio 10.1 Berlin, RAD Studio 10.2 Tokyo, RAD Studio 10.3 Rio, RAD Studio 10.4 Sydney, RAD Studio XE7, RAD Studio XE8, Tips and Tricks, TMS Software, TMS Web Core, Uncategorized | Comments Off on Did you know…?

Orpheus

I fixed several minor bugs in Orpheus according to Win64 and Unicode. Embarcadero has updated GetIt. I have the impression that still many people are using this library which I have seen for the first time with Delphi 2.

Posted in C++-Builder, Delphi, RAD Studio 10.3 Rio, RAD Studio 10.4 Sydney, Third Party Components, TurboPack, TurboPower | Comments Off on Orpheus

New Video

Today we published a new video. This time it is about Web Core for Visual Studio Code and the integrated HTML designer. This designer is able to show the components on an HTML form with CSS file. Please watch the video on TMS Software TV.

Posted in Delphi, TMS Software, TMS Web Core, Uncategorized, Visual Studio Code | Comments Off on New Video