StrataFrame Forum

Colorized Textbox usage

http://forum.strataframe.net/Topic3888.aspx

By Greg McGuffey - 10/26/2006

I can't figure out how to use the Colorized Textbox control.  The help topic that likely would explain it is missing (I have the trail version).  How is this used?  I get what it is used for, just can't figure out how the keywords collection works.
By Trent L. Taylor - 10/26/2006

This control is just a rich text format control on steroids and uses RegEx to parse out keywords that are defined within your keywords collection.  There is actually a sample that got installed with the trial that will show you how it is used. 

You can get to the demo here:

Start -> All Programs -> MicroFour StrataFrame -> Demos -> StrataFrame UI Controls

The source for that sample can be found here:

Start -> All Programs -> MicroFour StrataFrame -> VB.NET -> StrataFrame UI Controls

Let me know if this doesn't get you going in the right direction.

By Greg McGuffey - 10/27/2006

Doh! The samples! I've taken a look at these and it helped.



Unfortunately, the colorized text box doesn't seem to be working. I configured one to have one collection of keywords, with one keyword. Then directly set the raw text property, with the key word at the start of the line. The text was short: "Client: test" and the keyword was 'Client'. After running the app once, the text was properly formatted in design view, but all of the text was formatted when run. Any ideas?
By Trent L. Taylor - 10/27/2006

More than likely your Text Matching Options are set to EOL (End of Line).  Here are the settings I used below and it worked the way you are wanting (I think). Smile

Here are the results of the defined key from above:

Let me know if this isn't what you needed.

By Greg McGuffey - 10/27/2006

Nope, it is set for match exact text, just as you have it set. Hence the confusion.
By Trent L. Taylor - 10/27/2006

Package up your sample and post it here as an attachment and I will look at it.  Does the StrataFrame UI Controls sample work?
By Greg McGuffey - 10/30/2006

I accidently posted the code to this topic:



http://forum.strataframe.net/Topic3937-10-1.aspx?Update=1



For those of you who are wondering what's up.