On Jan 20, 2009, at 12:12 AM, Paul McNett wrote:

> I tend to use RegID's, but I don't really make use of them. I assign  
> them when
> instantiating, by passing the desired RegID in the constructor.

        Generally, you should only use RegIDs when an object needs to be  
referenced, and you don't want to depend on the name/container  
hierarchy to identify it. In practice, it's the same assigning it to a  
form attribute. There is no real difference between:

self.txtName = dabo.ui.dTextBox(self.mainPanel.pgfInfo.Page4)
        - and -
txt = dabo.ui.dTextBox(self.mainPanel.pgfInfo.Page4, RegID="txtName")

        The only differences are that a) uniqueness across the form is  
enforced and b) adding from any object will always result in a form  
attribute (as opposed to a container att).


-- Ed Leafe




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to