DBTreeview bean font-color / font-format request

Discuss all feature requests you have for a new Servoy versions here. Make sure to be clear about what you want, provide an example and indicate how important the feature is for you

DBTreeview bean font-color / font-format request

Postby john1984 » Wed Aug 13, 2008 2:45 pm

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
User avatar
john1984
 
Posts: 7
Joined: Fri Jul 18, 2008 1:39 pm
Location: Houten

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

Postby ROCLASI » Wed Aug 13, 2008 3:12 pm

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.
Robert Ivens
ROCLASI Software Solutions / JBS Group, Partner
SAN Developer / Servoy Valued Professional / Servoy Certified Developer
Twitter: @roclasi / @servoyforge
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5319
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

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

Postby john1984 » Wed Aug 13, 2008 4:10 pm

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
User avatar
john1984
 
Posts: 7
Joined: Fri Jul 18, 2008 1:39 pm
Location: Houten

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

Postby ROCLASI » Wed Aug 13, 2008 7:36 pm

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.
Robert Ivens
ROCLASI Software Solutions / JBS Group, Partner
SAN Developer / Servoy Valued Professional / Servoy Certified Developer
Twitter: @roclasi / @servoyforge
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5319
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

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

Postby john1984 » Thu Aug 14, 2008 9:46 am

Hi Robert,

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

Regards,
John
User avatar
john1984
 
Posts: 7
Joined: Fri Jul 18, 2008 1:39 pm
Location: Houten

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

Postby Robert Huber » Tue Sep 15, 2009 3:51 pm

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
Robert Huber
7r gmbh, Switzerland
SAN Developer
www.seven-r.ch
User avatar
Robert Huber
 
Posts: 1239
Joined: Tue Aug 23, 2005 6:52 pm
Location: Schaffhausen, Switzerland


Return to Discuss Feature Requests

Who is online

Users browsing this forum: No registered users and 2 guests

cron