On Oct 8, 2008, at 7:50 PM, Bob Mathias - Sysero llc Dev wrote:

>   I am using Dabo ClassDesigner that has a dForm with a dHtmlBox with
> the RegID set to ObjectBoxHtml.  I have two buttons, one to change the
> second button caption and to set the value in the dHtmlBox.
>
> self.Form.QuickButton2.Caption = "New Test"
> self.Form.QuickBuuton2.Visible = true       # Set Button to be visible
> self.Form.QuickButton2.redraw()             # draw button on screen

        No need to redraw() - setting Visible = True (note: 'true' is not the  
same as 'True'!) will redraw the button if necessary. And unless you  
set Visible=False initially, it should default to True.

> # examples came from DaboDemo dHtmlBox
>
> 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 select run I get
>
> Attribute Error: 'NoneType' object has no attribute 'ObjectBoxHtml'

        Is this code being run in the Hit event of the button? Or is it being  
run from somewhere else? Also, are your buttons on the form, or are  
they on something like a toolbar?


-- 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