text

Display Text From a Document's File - iPhone SDK

Does anyone know how to display a text file, if its in the "Documents" folder of the iPhone application? The extension might not always be ".txt", but I would like to give it a try. Thanks, Kevin ...

How do they do it? Dialogs over home screen.

Hi all, I'm writing an Android application and I would like to place a dialog or view over the home screen so that a user can enter text without jumping into my full application. I can't seem to get this to work. If I present a dialog (even in a transparent activity), my application launches. If you don't know what I'm talking about, t...

How to skew a Textfield in Actionscript 3.0 ?

How can I skew a Textfield in order to set a ascending space for each line. Following image should illustrate my intention: link to example ...

Console-like control that allows full control over individual text formatting

I'm tinkering with writing a simple text-based role-playing game. I would like to use WinForms, and utilize WinForm controls for the UI and simple text for the output. The catch is, I would like to have complete control over the formatting of the individual text - some words being different colors, etc. A simple console control would suf...

Replace links from specific domain with text (PHP)

Hi guys. I have : <a href="http://abc.com"&gt;Title&lt;/a&gt; And : <a href="http://xyz.com"&gt;Title&lt;/a&gt; I want to replace link to text "Title", but only from http://abc.com. But I don't know how ( I tried Google ), can you explain for me. I'm not good in PHP. Thanks in advance. ...

libmysql c++ text problem

Im using libmysql for mysql in c++ and now i got a column, type= text, and i want the word(s) inside it. how to do this? when i use Blob (dont know what it is) it gives me e44158. can somebody help me please? ...

Read text file in google GWT?

Hello all, I am writing a webpage using GWT. Now I need to read a text file and display the content in the webpage but have no idea how to do that with GWT. It is very nice if there is any way in GWT that I can read .properties file. (Please note that this is not the properties file of localization that GWT has already supported ) Doe...

How to open a large text file in C#

I have a text file that contains about 100000 articles. The structure of file is: .Document ID 42944-YEAR:5 .Date 03\08\11 .Cat political Article Content 1 .Document ID 42945-YEAR:5 .Date 03\08\11 .Cat political Article Content 2 I want to open this file in c# for processing it line by line. I tried this code: String[] FileLine...

underline text in UIlabel

How to underline a text that could be multiple lines of string? I find some people suggest UIWebView, but it is obviously too heave a class for just text rendering. My thoughts was to figure out the start point and length of each string in each line. And draw a line under it accordingly. I meet problems at how to figure out the length ...

iPhone scrolling text

Hello! I'm currently making a role-playing game, and I want the text to scroll like all the other RPGs I've played. How would I accomplish this? Thanks! ...

How to shift pixels of a pixmap efficient in Qt4

Hello, I have implemented a marquee text widget using Qt4. I painted the text content onto a pixmap first. And then paint a portion of this pixmap onto a paint device by calling painter.drawTiledPixmap(offsetX, offsetY, myPixmap) My Imagination is that, Qt will fill the whole marquee text rectangle with the content from myPixmap. Is ...

Format fixed-format text file lines

there's a text file first second third 1 2 3 yes no ok hmmmmmmm yep_a_long_word_it_is ahahahahahahha what java functions /libs to use to align words so that they are looked like this (fixed width based on the longest column's length), let's say center align: first second third 1 2 ...

Parsing a text file with a fixed format in Java

Suppose I know a text file format, say, each line contains 4 fields like this: firstword secondword thirdword fourthword firstword2 secondword2 thirdword2 fourthword2 ... and I need to read it fully into memory I can use this approach: open a text file while not EOF read line by line split each line by a space create a new ...

Is it possible to put text on top of a image in a button?

I have .jpg images in my buttons. I also would like to put some text on top of the images. I use the following syntax for that: JButton btn = new JButton(label,icon); But I do not see text in the buttons (only image). What am I doing wrong? ...

Stretch text in a TextArea control in Flex 3

I think I might be missing something really obvious here but how can I stretch the width or height of the text in a TextArea rather than just resizing the bounding box of the control ? ...

Linq To Text Files

Hi All I have a Text File (Sorry, I'm not allowed to work on XML files :(), and it includes customer records. Each text file looks like: Account_ID: 98734BLAH9873 User Name: something_85 First Name: ILove Last Name: XML Age: 209 etc... And I need to be able to use LINQ to get the data from these text files and just store them in memo...

php, checking correctnes of text splitting

I need to split html document on two parts. First part, should contain N(30) words, and next one should contain everything else. And the main problem, is to prevent splitting tags (description and body of tags). <a **<=>** href="text" > text </a> <a href="text" > **<=>** text </a> <a href="text" > text </ **<=>** a> Give me please su...

Multi color Edit Field (Win32)

I want to create a program that will parse text for key words and make these words a certain color. What type of control supports many different colors? Would I have to create my own, or override the OnPaint() of a basic control or something? (Id like to avoid making my own control from scratch) Thanks ...

How to let a user input html into a textarea? I have problems if they try to include <textarea> inside a text area

So i have a space where users can input text/html, and it will show up on another page. Sounds pretty simple right. Well this space is a text area - again exactly what you would expect. But if the user tries to enter in a tag and the tag, then the will close the textbox the next time they load the page (with the previous text inserte...

Highlighting Text Color using Html.fromHtml() in Android?

Hi, I am developing an application in which there will be a search screen where user can search for specific keywords and that keyword should be highlighted. I have found Html.fromHtml method. But I will like to know whether its the proper way of doing it or not. Please let me know your views on this. Regards Sunil ...