Jump to content

Application raize an error when a component (from other uniform) is referenced in anonymous procedure on showmodal.


Recommended Posts

Posted

UNIGUI 0.93.0.996, Firefox 19.0.2, Windows 7, Delphi XE3 up 2.

 

I really don know if this is an error or the normal way showmodal works.

 

1. Application raize an error when a component is referenced in anonymous procedure on showmodal.

 

a. Add anotther uniForm to the project,

 

b. place an uniLabel or uniEdit

 

c. add the unit to the main form

 

a. place a uniButton and main form and add this code.

 

 

  UniForm1.showModal(
    procedure(res: integer)
    begin
       Uniform1.UniLabel1.Caption := 'This raize an error';
    end
  );
 

 

Best Reagards

testCase02042013.zip

  • 10 months later...
  • Administrators
Posted

Actually we need a better Handler for Form anon procs. Something like:

procedure(Sender: TObject; Res: Integer)
  begin
    (Sender as TUniForm1).UniLabel1.Caption := 'Error here';
  end;

Move to feature requests.

×
×
  • Create New...