Dear dabo-users,

  I am using ClassDesigner and received the message:
    Attribute Error: 'NoneType' object has no attribute 'ObjectBoxHtml'

button1 is in the:

        dForm(dForm)
          Sizer: Vertical
            BorderSizer('Business Selections'): Horiz..
              dButton(dButton)
              Spacer - (10)
              dButton1 (dButton) <- Botton1
                ..
                ..
            Sizer: Horizontal                          
              dPanel(dPanel)
               Grid Sizer
                 dPanel r:0, c:0(dPanel)
                 dPanel r:0, c:1(dPanel)
                   ..
                   ..
                 dHtmlBox r:1, c:1 (dHtmlBox) <- dHtmlBox
                   ..
   dHtmlBox RegID was set to "ObjectBoxHtml"
   Button1 RegID was set to "QuickButton1".  I used your example in
DaboDemo dHtmlBox
to setup my test within the event onHit.

def onHit(self, evt):
  self.Form.ObjectBoxHtml.DataSource = self.Form.ObjectBoxHtml
  self.Form.ObjectBoxHtml.DataField = "Source"
  self.Form.ObjectBoxHtml.Value = """
  <HTML>
  <head>
  <title>Hello Wikipedia!</title>
  </head>
  <body>
  <font color="yellow">
     Hello World
  </font>
  </HTML>
  """

   When I ran the program I received the error Attribute Error:
'NoneType' object has no attribute 'ObjectBoxHtml'.  Help!!

  The next step I want to load a HTML from my SQLite database when the
form is opened. I think I can do that in the onCreate or onActivate
dForm event?

Thank you

Bob



_______________________________________________
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