Normally inheritance an replication does work; but i've done a proper 
inheritance about a year ago. (at that point it does work normally) and 
replication does work as one would  expect.

After adding and resorting a lot of buttons/ menu items etc within the last 
year, this inheritance does 'break'; after adding the inherited button manually 
within the proper place within the text dfm file, it does appear and works. 

My point is, this 'auto' inheritence does have limitations, but I do not know 
what they are. Searching where a button has to reside within the dfm file, is 
quite a lot of work.

Regards

andries

David Cornelius <[EMAIL PROTECTED]> wrote:                                  If 
buttons added to one form don't automatically and immediately show up on
 a second form, then the second form is not truly inherited from the first.
  
 To illustrate form inheritance, create a new project with a form and a
 button on it, and save it.  Then click File > New, select the tab listing
 your application name, select the form and click OK (notice the only
 available option at the bottom is inherit).  Now, whatever you do to the
 first form is immediately replicated to the inherited form.
  
  
 David Cornelius
 Cornelius Concepts, Inc.
 http://corneliusconcepts.com <http://corneliusconcepts.com/>  
 Software Development, Databases, Websites
  
   _____  
 
 From: Andries Bos [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, August 15, 2006 7:41 AM
 To: delphi advanced group
 Subject: [delphi-en] form inheritance
 
 I have a form that inherits all buttons etc from a main form; also onto this
 second form , i've added different other buttons etc.
 
 How could I force an added button onto the ancestor form (form1) to be also
 visibile within the second form. I've edited the dfm file by hand in the
 past to use the "inherited button" , but I think there should be an easier
 way to let a new button be visible onto the second form.
 
 What should be the proper way to do this?
 
 regards
 
 Andries Bos
 
 ---------------------------------
 Get your email and more, right on the new Yahoo.com 
 
 [Non-text portions of this message have been removed]
 
 [Non-text portions of this message have been removed]
 
 
     
                       

                
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1ยข/min.

[Non-text portions of this message have been removed]



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to