Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread EWB 3 Build 7 - Certain Color Constants Not Defined At Runtime
Sun, Mar 29 2020 6:55 PMPermanent Link

Rob Frye

Particular color constants (e.g. clBlue, clWhite, clGreen) are undefined at runtime.  For example, the following builds with no errors but will cause a " 'webui_clblue' is undefined " application error.

unit Unit1;

interface

uses WebCore, WebUI, WebForms, WebCtrls;

type

  TForm1 = class(TForm)
     procedure Form1Show(Sender: TObject);
  private
     { Private declarations }
  public
     { Public declarations }
  end;

var
  Form1: TForm1;

implementation

procedure TForm1.Form1Show(Sender: TObject);
begin
  Form1.Background.Fill.Color := clBlue;
end;

end.
Mon, Mar 30 2020 5:40 PMPermanent Link

Steve Gill

Avatar

<< Particular color constants (e.g. clBlue, clWhite, clGreen) are undefined at runtime.  For example, the following builds with no errors but will cause a " 'webui_clblue' is undefined " application error. >>

I've noticed that as well.

= Steve
Tue, Apr 7 2020 12:12 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Rob,

<< Particular color constants (e.g. clBlue, clWhite, clGreen) are undefined at runtime.  For example, the following builds with no errors but will cause a " 'webui_clblue' is undefined " application error. >>

I'm pretty sure this is already fixed for build 8, and had to do with the compiler not resetting references between units in certain cases, thus causing certain references to not be emitted.  I just tested it with a fresh project and it's working fine now.

Tim Young
Elevate Software
www.elevatesoft.com
Image