On May 14, 2010, at 2:46 PM, Martinecz Miklós wrote:
> However, I cannot find out if it is possible using the dHtmlBox.
Yes, it's possible, although I've never tried it like that. dHtmlBox is
not a data-aware control, since it is intended to be for display only, so you
won't be able to bind directly to the data. Instead, you'll have to code a
little work-around.
What I would suggest is to add a regular dTextBox to the form, and bind
it to the column that holds the formatted help text, but set Visible=False so
that it doesn't show.
Make sure that the dHtmlBox has a RegID so you can reference it (let's
assume that this is 'htmlControl'). Now all you need to do is make sure that
when the data changes in the invisible text control, it updates the Source
property of the dHtmlBox control. To do this, add the following code to the
invisible text box:
def onValueChanged(self, evt):
self.Form.htmlControl.Source = self.Value
-- 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]