April 27, 2013

A Smart Book Covers Smart 1.1

I have just published an update to the A Smart Book. Added were 38 pages covering Smart 1.1 – language changes, new controls and RTL additions.

Read more or get the book.

April 23, 2013

New in Smart 1.1: Modal Dialogs

Besides the new compiler and a bunch of new components, Smart 1.1 also includes support for modal dialogs. There is also a new demo ModalDialog which shows how to use the new feature. Today I’ll walk you through this demo.

April 20, 2013

New in Smart 1.1: HTML Elements

Smart Mobile Studio 1.1 contains many new controls which I hope to describe in the following days. Today I’ll start with a group of three controls which allow the programmer to insert specific HTML elements (a.k.a. tags) on a Smart form.

image

April 10, 2013

New in Smart 1.1: Bugs and Omissions

The 1.1 edition generally works very well but there are still few glitches. At the moment I am aware of two problems which can both be fixed by editing the RTL code.

April 02, 2013

New in Smart 1.1: Properties with Anonymous Storage

When a property is backed directly by a field (without a getter and/or a setter) and this field is never accessed directly, the code can be further simplified by dropping the field declaration altogether.

An example of such code would be:

type
TMyClass =
class
private
FData:
integer;
public
property Data: integer read FData write
FData;
end
;

This code can be simplified to:

type
TMyClass =
class
public
property Data:
integer;
end
;

Smart will still create a field inside the TMyClass object, but this field will be aonymous and not accessible directly from the code.

Note: This type of properties cannot be used in external classes and lasses inheriting from the JObject class.