Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder Demos and Examples » View Thread |
Messages 1 to 5 of 5 total |
Why second form did not show ? |
Sat, Apr 29 2017 1:07 PM | Permanent Link |
CHORHARID DFX | I tried to read the manual and only want to show two forms.
If all forms is auto create, then it stacks on top of each other. If I move remove form from auto create, the second one never show. I run the sample it works ok. Might be a super silly question here. Attachments: Why.zip |
Sat, Apr 29 2017 1:16 PM | Permanent Link |
CHORHARID DFX | Sorry, if you even put showmodal instead of show. It will never show.
|
Sat, Apr 29 2017 1:37 PM | Permanent Link |
Uli Becker | << FormPop := TFormPop.Create(nil);
try FormPop.Show; finally FormPop.Free; end; >> That won't work because you are freeing FormPop immediately. There is no reason to do so. Use this: if not Assigned(FormPop) then FormPop := TFormPop.Create(Application); FormPop.Show; That will make sure that only one instance of FormPop is created. Uli |
Sat, Apr 29 2017 2:11 PM | Permanent Link |
CHORHARID DFX | Thank you Uli,
Now it feels like all over Delphi again. Uli Becker wrote: << FormPop := TFormPop.Create(nil); try FormPop.Show; finally FormPop.Free; end; >> That won't work because you are freeing FormPop immediately. There is no reason to do so. Use this: if not Assigned(FormPop) then FormPop := TFormPop.Create(Application); FormPop.Show; That will make sure that only one instance of FormPop is created. Uli |
Sat, Apr 29 2017 3:36 PM | Permanent Link |
Uli Becker | Addition: showmodal works different in EWB and Delphi. In EWB it does *not* wait until the modal form has been closed. It just disables all other forms.
Uli |
This web page was last updated on Friday, September 13, 2024 at 03:42 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |