The Frame requires a Parent.  Did you set that?  

from Robert Meek dba Tangentals Design  CCopyright 2006

"When I examine myself and my methods of thought, I come to the conclusion
that the gift of Fantasy has meant more to me then my talent for absorbing
positive knowledge!"
                                                    Albert Einstein


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Horváth Márton
Sent: Thursday, February 09, 2006 1:39 AM
To: [email protected]
Subject: TFrame in package (fwd)

Hi All!

I have problem with frames I put into a package. (Sorry, if it had 
discussed before...) When I try to make an instance from the frame I 
cannot see anything. The parent is Form1. When I execute Form1.
FindControl('nameofframe'), I found the frame(!), I can ask the Width, 
height, color, etc, but I cannot see! Why? Is it a bug?
Another interesting effect: If I .Hide then .Show the Form1 (where the 
frame has been created), the frame will shown! (with Form1. 
Perform(CM_VISIBLECHANGED) method I can reach the same effect) If I 
check the ProjectOptions."Build with runtime packages" option it will 
works also, but I cannot do this because of other reasons. 
So what can I do? Has everyone heard about this issue? How can I 
avoid the Hide/Show calls? (it's so silly)

I tried these:
1, LoadPackege + GetProcAddress (returns with the class of Frame),
2, LoadPackege + [TPersistent.]GetClass (returns with the class of 
Frame),
3, LoadPackege + GetFrame(ParentForm) (returns with an instance of 
Frame)

Please help me,
thanks for advance:
martens



___________________________________________________________________________
Játssz és nyerj könnyedén fényképezőgépet, babzsákfotelt vagy egyhetes, 
kétszemélyes egzotikus álomutazást!
http://www.budavartours.hu/jatek/?from=frm_kimeno


__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to