AlbertoVesx Posted April 2, 2013 Posted April 2, 2013 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
Oliver Morsch Posted April 2, 2013 Posted April 2, 2013 if "FreeOnClose" of UniForm1 is "true", there is no instance of UniForm1 anymore (in the anonymous procedure).
Administrators Farshad Mohajeri Posted February 13, 2014 Administrators Posted February 13, 2014 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.
Recommended Posts