Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won

  1. vaza

    Code formatting

    Hi Just would like to share a code formatting tip. I have been struggling for a while with code formatting in SMS. I often do refactoring in Delphi but Delphi code formatter was always messing SMS code, especially Html. Then I pressed control + D (shortcut set using GExperts menu) by accident when a procedure was selected and Delphi formatted just the selection. I didn't know that was possible. Now my SMS code is beautifully formatted and easy to read. Hopefully it would be useful for someone. Thanks VZ
  2. vaza

    Calling a method of another class

    Found the solution TMyChildRed.OnClick begin var obj := self.Parent; (obj as TMyControl).CallMe; end;
  3. Hi I followed a tutorial on SMS and CSS (part2 https://jonlennartaasenden.wordpress.com/2017/10/11/smart-mobile-studio-and-css-part-2/) and successfully created my first component. There is a small problem, which I cannot resolve myself - I need to call a method of TMyControl from TMyChildRed. I have spent a while searching for the solution, but unsuccessfully. Could anyone please point me in the right direction. Best regarding