#1 2018-05-23 11:09:36

esmondb
Member
From: London
Registered: 2010-07-20
Posts: 299

slight problem with mORMotUI.pas

If I'm using mORMotUI with a form I can't set any VCL controls' align properties to alRight at run-time. Delphi gives the error:

[DCC Error] Unit1.pas(281): E2010 Incompatible types: 'TAlign' and 'TSQLTableToGridAlign'

As a workaround I've used TAlign(4) instead of alRight. Is there a better way?

Offline

#2 2018-05-23 11:38:54

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,182
Website

Re: slight problem with mORMotUI.pas

The problem is in your Unit1.pas code.

Set the mORMotUI.pas unit before the VCL units in your uses clause.
Or write

Controls.alRight

to specify the unit.

Offline

#3 2018-05-23 12:00:42

esmondb
Member
From: London
Registered: 2010-07-20
Posts: 299

Re: slight problem with mORMotUI.pas

I've tried putting mORMotUI.pas both at the start and end of the uses clause and it still gives the same error (using delphi 2007).

Offline

Board footer

Powered by FluxBB