-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Ed Leafe
Sent: Friday, May 14, 2010 9:31 PM
To: Dabo Users list
Subject: Re: [dabo-users] Formatted text in CD textbox
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
**********
Hi Ed,
Now I have already two possible solutions (together with Paul's one).
I understand both (this is important on my programming knowledge level).
It is a good feeling that I can get help any time on this forum.
Thanks for that!
Miklós
_______________________________________________
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/!~!uenerkvcmdkaaqacaaaaaaaaaaaaaaaaabgaaaaaaaaackgpanngp0urgxvyyklpm8kaaaaqaaaafgtxhbffveafyayj3tefwgeaa...@upcmail.hu