Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Formatting text in a cell

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
JxxDiaz
Guest





PostPosted: Tue Mar 28, 2006 5:49 pm    Post subject: Formatting text in a cell Reply with quote

Is it possible to change the color of certain text in a cell. I am having the user preform a search to populate the Virtual Tree and I would like to change the font color of any occurance of the search phrase in the Virtual Tree.

IE:
Searched for "Neighborhood"...I would like to see the value in the VT displayed as.

Careml Valley Neighborhood 5, Unit Number 4
Back to top
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Tue Mar 28, 2006 10:39 pm    Post subject: Reply with quote

To do this you need to derive a new CellWidget class and override PaintText to draw the text as you want it. The default method is something like:

Code:
protected virtual void PaintText(Graphics graphics, Style style, bool printing)
{
     style.DrawString(graphics, Text, GetTextBounds());
}



See the section in the online help on using Widgets for more info.

We are looking at the possibility of providing support for displaying rich text in a future version. This would provide alternative mechanism. Have you purchased Virtual Tree?
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
JxxDiaz
Guest





PostPosted: Tue Mar 28, 2006 10:49 pm    Post subject: Reply with quote

Awsome I will try this out. And yes I have purchased Virtual Tree and the Source Code.
Back to top
Guest






PostPosted: Tue Mar 28, 2006 11:18 pm    Post subject: Reply with quote

Infralution wrote:

See the section in the online help on using Widgets for more info.


How do I access this online help?
Back to top
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Tue Mar 28, 2006 11:23 pm    Post subject: Reply with quote

Its installed when you install Virtual Tree. Simply use the Start->Programs->Infralution->Virtual Tree->Virtual Tree Documentation menu. Or you can access the help from within Visual Studio help by displaying the help contents tab and then the expanding the Virtual Tree section.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group