text

How do I set the font size in a text cell so that the string fills the cell's rect?

I have a view that contains two NSTextFieldCells. The size at which these cells are drawn is derived from the size of the view, and I want the text in each cell to be the largest that will fit in the derived size of the cell. Here's what I have, which doesn't set the font size: - (void)drawRect:(NSRect)dirtyRect { /* * Observan...

Fire event on Word-Wrap

Hi All Is there some way to find out when the text gets wrapped (WordWrap) inside a RichTextBox? I've dug around quite a bit but haven't found anything so far, will keep looking though... The reason I'm looking into this is because I need an event to fire whenever the RichTextBox wraps the text at the end of the line. Thank you all ...

Create a generic application that can read/write formatted text files based on schema

I often have a need to create input files for batch processes and to validate outputs from similar processes. The format of these files varies, e.g. they could be fixed-width, csv or sometimes XML. In the past I have created a little application in C# to help me work with a particular task. The application generally consists of a TreeV...

String length at the start of a MySQL text field when using HYDRATE_NONE?

Hi, I'm using Symfony 1.4 with Doctrine. I'm saving text as MySQL text type (Doctrine "array" type) into the database, and it goes in clean & correct. When querying the data back, if I use Doctrine_Core::HYDRATE_ARRAY the data is returned as it should be. However, if I use HYDRATE_NONE, the data is returned with the text length append...

Stop Excel from changing cell contents, ever

I work with card numbers, like credit card and ID numbers. We do not do any calculations with card numbers, obviously. They are "text." I format them as text, I type them like text. I know how that works. Excel doesn't care. 16 digit card numbers get their last digit turned into a zero, changed into scientific notation, stupid stuff tha...

set textstyle asp.net javascript

hello i have <a href ="javascript:NewWindow =window.open('anleitung.aspx', 'NewWindow' , ' top=81, left=499, width=400, height=400'); NewWindow.focus()">Hilfe</a> how can i set the text-style ...

Tablet PC/WPF textbox bug - any workarounds?

I've just logged this with Microsoft Connect, but I'm wondering whether anyone else has come across it and found a fix. Google's not showing much... Simple repro: Application has a WPF textbox with MaxLength set Use the TabletPC input panel to write more text than is allowed Press "insert" on the TabletPC panel and the application cr...

Custom UITextField blurred text

When a UITextField with custom frame (200 54 px) loses focus, the text looks a little bit blurry. example screenshot Is this a common problem? Any workaround / solution or am I doing something wrong? ...

How to place a symbol (path) relative to the far end of svg text?

I'm working on a program which generates SVG maps. Some of the map items have captions which need a symbol after them (like a plane symbol for an airport caption). If I have a text element thus <text x="30" y="30">Pericles</text> I can place another bit of text at the next character position by saying <text x="30" y="30">Pericles <...

sIFR3 - diagonal text?

Hi there, I'm wondering if it's possible to create diagonal text with sIFR3 ? I searched the net, but haven't come up with any leads so far. Any nudge in the right direction would be much appreciated. Thanks ...

How to get levels for Fry Graph readability formula?

Hi, I'm working in an application (C#) that applies some readability formulas to a text, like Gunning-Fog, Precise SMOG, Flesh-Kincaid. Now, I need to implement the Fry-based Grade formula in my program, I understand the formula's logic, pretty much you take 3 100-words samples and calculate the average on sentences per 100-words and s...

Advanced text search in actionscript-return ALL nouns,adjectives and verbs..

Hi I know that as3 has some powerful new text search capabilities, especially when combined with regex. I don't even know if this is possible, but I would like to somehow, search any block of text, and return all nouns, adjectives and verbs. What would be the best(most efficent) way to do this? Is regex an option? or would I have to lo...

search text file using c# and display the line number and the complete line that contains the search keyword

I require help to search a text file (log file) using c# and display the line number and the complete line that contains the search keyword. ...

How to store dynamic references to parts of a text

In fact, my question concerns an algorithm. I need to be able to attach annotations to certain parts of a text, like a word or a group of words. The first thing that came to me to do so is to store the position of this part (indexes) in the text. For instance, in the text 'The quick brown fox jumps over the lazy dog', I'd like to attach...

Change Layout Of Text Created In Java [Android]

Ok right , i asked how to create a random number from 1-100 for android and i came to this TextView tv = new TextView(this); int random = (int)Math.ceil(Math.random()*101); tv.setText("Your Number Is..."+ random ); What this does is create the default kinda "hello world" style text view and says "Your Number Is.... [Th...

Is it possible to use bold fonts on facebook page descriptions?

I know there are certain ways of using bold/italic/underlined text in facebook's chat, but I'm struggling to achieve the same on the page description. That is the text below the page's logo. I know this is probably the wrong place to post this but since you guys are awesome * pleaseee :) * and fast, if you're not able to help me, no one...

Garbled text when constructing emails with vmime

Hey, my Qt C++ program has a part where it needs to send the first 128 characters or so of the output of a bash command to an email address. The output from the tty is captured in a text box in my gui called textEdit_displayOutput and put into my message I built using the Message Builder ( the object m_vmMessage ) Here is the relevant co...

How to delete columns?

Hi all, I have generated the following text file below: fe120b99164f151b28bf86afa6389b22 -rw-r--r-- 1 joey joey 186 2010-03-14 19:26 Descript.txt 41705ea936cfc653f273b5454c1cdde6 -rw-r--r-- 1 joey joey 30 2010-03-14 20:29 listof.txt 0e25cca3222d32fff43563465af03340 -rw-r--r-- 1 joey joey 28 2010-03-14 23:35 sedexample.txt d41d8cd98f0...

shorten a word in a block of text

I have a block of text which occasionally has a really long word/web address which breaks out of my site's layout. What is the best way to go through this block of text and shorten the words? EXAMPLE: this is some text and this a long word appears like this fkdfjdksodifjdisosdidjsosdifosdfiosdfoisjdfoijsdfoijsdfoijsdfoijsdfoijsdfoisj...

How to draw semi-transparent text on a graphics object?

I want to draw a text with 32 bit transparency on a graphics object. When I try, I only get black color in the result. If I try to draw a line with the same semitransparent color, it works perfectly. I have this code: lBitmap As New Bitmap(32, 32, PixelFormat.Format32bppArgb) lGraphic As Graphics = Graphics.FromImage(lBitmap) lGraphi...