Is it better  to  create a tabwidget  in mainform and working with ongetsubform 
event .Then I do not have to create window and freei it. The Rad do it for me?

Oncreate Mainform()

ttabpage1.tago:=(f_11);
.....
ttabpagen.tagpo:=(f_nn);

OngetSubForm()
submoduleclass:=widgetclassty(ttabpage(sender).tag);

So  application.create(tfn,fn) is eliminated?  and also to free it

Med


________________________________
De : Martin Schreiber <[email protected]>
Envoyé : samedi 13 octobre 2018 09:48
À : [email protected]
Objet : Re: [MSEide-MSEgui-talk] Variable scoping;

On Friday 12 October 2018 21:50:32 mohamed hamza wrote:
> Excuse  me, but in the hurry I gave you a bad example with an unforgiven
> error.
>
> As an attachment there is the real example.
>
"
procedure tmainfo.onCreated(const sender: TObject);
begin
 f2fo:= tf2fo.create(application); //<<<<----
  //or better:
// application.createform(tf2fo,f2fo);
       //register for cross form component linking
end;
"


_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to