Page 1 of 1

DBTreeview bean font-color / font-format request

PostPosted: Wed Aug 13, 2008 2:45 pm
by john1984
Hi all,

Request 1:
In the current version of the DBTreeview it is possible to set the font color of the tree:
elements.[namebean].fgfont = '#efefef'.

Is it possible to get something like this by binding?
vBinding.setFontColorDataprovider

Request 2:
In the current version of the DBTreeview it is possible to set the font-type by binding.
You can make the font bold or italic or a combination of bold/italic, but you can not make a underline in a node.

Or if it is possible, how to do this?

Regards,
John

Re: DBTreeview bean font-color / font-format request

PostPosted: Wed Aug 13, 2008 3:12 pm
by ROCLASI
Hi John,
john1984 wrote:In the current version of the DBTreeview it is possible to set the font-type by binding.
You can make the font bold or italic or a combination of bold/italic, but you can not make a underline in a node.

Or if it is possible, how to do this?

Yes, just use the Font chooser (see menubar when you are in the Editor (v3.5)). This returns a formated string for you.
For example 'SansSerif,1,11' , means font SansSerif, bold and 11points.

Hope this helps.

Re: DBTreeview bean font-color / font-format request

PostPosted: Wed Aug 13, 2008 4:10 pm
by john1984
Hi Robert,

That you for youre reply.

ROCLASI wrote:For example 'SansSerif,1,11' , means font SansSerif, bold and 11points.


For example I want to make a make project title bold and with a underline. I know the 4 option from the Font chooser, but here you have not a option for the underline.

For example 'SansSerif,[option],11':
0 = general
1 = bold
2 = italic
3 = bold/italic

Normaly you can use a stylesheet for this but that is not possible for the DBtreeview bean.
Hopefuly the problem in clear.

Regards,
John

Re: DBTreeview bean font-color / font-format request

PostPosted: Wed Aug 13, 2008 7:36 pm
by ROCLASI
Hi John,

I should have read your question a little better. Indeed the fontchooser doesn't provide for underline but you can use HTML in your node to do that.
Code: Select all
<html><u>nodelabel</u></html>

To make that dynamic you could use a unstored calculation to use the HTML or not depending on the data and use this calc as Textdataprovider.
You could this technique also to color your nodes.

Hope this helps.

Re: DBTreeview bean font-color / font-format request

PostPosted: Thu Aug 14, 2008 9:46 am
by john1984
Hi Robert,

My problem is solved now :D.
Thank you for the information.

Regards,
John

Re: DBTreeview bean font-color / font-format request

PostPosted: Tue Sep 15, 2009 3:51 pm
by Robert Huber
Hi All

I would like to come back to John's question about vBinding.setFontColorDataprovider. This would nicely allow dedicated colours, for example for titles, in a menu tree. Has someone already done such a request?
Or is it possible to add colour to the bind.setFontTypeDataprovider('font') font string, something like 'LucidaGrande, 1, 11, #aabbcc'?

Regards, Robert

john1984 wrote:Hi all,

Request 1:
In the current version of the DBTreeview it is possible to set the font color of the tree:
elements.[namebean].fgfont = '#efefef'.

Is it possible to get something like this by binding?
vBinding.setFontColorDataprovider