Search 5,000,000+ questions and answers.

Frequently Asked Questions

How do I get the TRichEdit to scroll to the bottom of the text when new lines are added?

Yet Another Code Site - FAQs
To scroll to the bottom of the text in the component, move the selection to the bottom and then tell the TRichEdit to scroll to the caret like so: RichEdit1->SelLength = 0; RichEdit1->SelStart = RichEdit1->GetTextLen(); ::SendMessage(RichEdit1->Handle, EM_SCROLLCARET, 0, 0); If that does not work, you may need to add code to ensure that the Rich Edit control has focus.
Related Questions

How do I save and restore the current scroll position in a TRichEdit component?

Yet Another Code Site - FAQs
First, a brief description of the problem: Assume that you are writing a chat room program. As new messages are a posted in the chat room, you want to append them to the text in the control. However, to do this, you must position the caret at the bottom of the text and then insert the text. Finally, you need to restore the original caret position (easy) and scroll back such that the top line displayed is the same one as before inserting the text (not so easy).
Related Questions

Why are lines added to some of my posted journals?

GL FAQs
This occurs to support U.Va.'s authorized practice of depositing state and local money to local bank accounts. These additional lines are prompted in GL by debit and credit lines that show an Entity value of "UVA Local" in one and "UVA State" in the other. After posting, the system adds lines to a deposit journal entry that keeps track of how much money must be debited or credited to the appropriate state accounts.
Related Questions

Q4.7: How can I write a title or text with multiple lines?

Frequently asked questions about MATLAB
This can be done using a cell array of strings: title({'First line','Second Line'}) text(0.5,0.5,{'First line','Second Line'})
Related Questions

HOW MUCH SPACE/ HOW MANY LINES OF TEXT DO I GET?

FAQ's
keep in mind the more text you include the smaller the type face will become. typically, a verse, poem, phrase or message of about 6-8 short lines (about 4 words/line)will work nicely... "may the Lord bless you and keep you"... "all good and perfect things come from above" James 1:17..."congratulations on your wedding. may God continue to bless your union for all the days of your lives together" love, bryan, valerie, brandyn and coltyn myers
Related Questions

How can I scroll back in the text window?

Share Chat - FAQ
Increase the number of screen lines: the command "/lines" determines the number of lines before a screen refresh occurs. A value of 150 is a good starting point, if you want to scroll back.
Related Questions

Why do I have to scroll from side to side to view the text?

Aquatic Training Institute - FAQ's
You may have to scroll from side to side to view the text. Try minimizing the right sidebar to view the complete screen.
Related Questions

How do I get new lights added?

LSU/OFS: FAQs
Please call the Director of Energy Services to report the problem. Dark areas will be examined, and lighting will be improved if warranted.
Related Questions

I Have A Suggestion For A New Provider To Be Added?

Frequently Asked Questions (FAQs)...
For a new provider to be added, we usually require that it's top for at least one destination or call type, it should also be an instant access provider (i.e. not Carrier Pre-Select where all your calls are routed through). If you could let us know for which country or type of call it comes top we will add it to the database. To do this, e-mail: newcallprovider@moneysavingexpert.com detailing what countries/call types the new provider is cheapest for.
Related Questions

How do I trap double-clicks on a TRichEdit?

Yet Another Code Site - FAQs
Remy Lebeau (Gambit) offered the following solution in a C++ Builder forum. Simply publish the unpublished OnDblClick event like so: class PACKAGE TMyRichEdit : public TRichEdit { public: __fastcall TMyRichEdit(TComponent* Owner); __published: __property OnDblClick; }; __fastcall TMyRichEdit::TMyRichEdit(TComponent* Owner) : TRichEdit(Owner) { } void __fastcall TForm1::MyRichEditDblClick(TObject* Sender) { ShowMessage("double-clicked"); }
Related Questions

Why does less scroll off the screen if there are long lines?

LESS
If you see data scroll off the screen when you view lines longer than the screen width, something is wrong. There are two likely possibilities. First, you may be using the -r option (either explicitly or in your LESS environment variable). The man page states that the -r option may cause display problems (see Why does -r cause display problems? for more details).
Related Questions

Why don't the lines in your text files end at the edge of the screen?

frequently and not-frequently asked questions
Because my desktop resolution is 1600 x 1200, and if yours is smaller, some lines are going to extend past the length of the screen. First of all, I'm not going to change my resolution. I find that at this resolution, I can almost always keep one bubble of dialogue or thought within the length of one line, although occasionally they will go over. If it's such a bother to you, you can always try loading the files in a text editor and wrapping the lines.
Related Questions

How do I make the horizontal scroll bar adjust to the width of text?

SciTE FAQ
To avoid slow performance the horizontal scroll bar does not automatically adjust. You can use the horizontal.scroll.width property to change the horizontal scroll range.
Related Questions

Can I make up my own scroll text?

Scribal FAQ's
Yes, provided that you are careful in your phrasing, and include certain necessary information such as the award, recipient, date, names of the King and Queen giving the award, and armorial blazon if necessary. When creating your own scroll text from scratch, you must have it pre-approved by the Kingdom Scribe (before you sit down to do the lettering), so that you are certain it will be acceptable to the Crown, and can be signed.
Related Questions

Why does the cell text show up with "square" characters where they should be new lines?

DataGridView - Windows Forms FAQs
By default, text in a DataGridViewTextBoxCell does not wrap. This can be controlled via the WrapMode property on the cell style (e.g. DataGridView.DefaultCellStyle.WrapMode). Because text doesn't wrap, new line characters in the text do not apply...
Related Questions

How many org lines can be added per batch (especially useful info for isp type folks)?

FM FAQs
If a PI/faculty member uses a PTAO card at the Bookstore or Cavalier Computers, for example, to get office supplies (or some other expenditure), and the item (expenditure type) they purchase is NOT allowed on that PTAO, will it be known immediately at the time of purchase, or will they be able to charge the item, walk away with it, and the charge and/or batch will be rejected later? (Or will the charge have to be moved by Org - departmental fiscal staff later?)
Related Questions

How much new water will be added to the oceans of the earth?

Iceberg FAQ's
The back of the envelope calculation shows that there is about 1,000 trillion gallons of water in this iceberg, but it's not "new." It's been in the hydrological cycle. The iceberg contains sufficient water to provide 5 inches of water for the agricultural land of the earth or about 0.5 inches on the land area of the earth.
Related Questions

How can I find out when new content that interests me is added to Associated Content?

Frequently Asked Questions - Associated Content
If you have a My Yahoo, My MSN, My AOL or another webpage that accepts RSS feeds, you can set up a free RSS feed of AC content. You can choose to get a feed of either recently published, top-rated, or most-emailed content in the category of your choice. If you enjoy viewing a specific Content Producer's work, go to their page (accessible by clicking on their byline) and sign up for their RSS feed by clicking on this icon.
Related Questions

Why all the empty space when I scroll to the bottom?

MT-NW Manual: Frequently Asked Questions
I'd like to report an error in MT-NewsWatcher. When I scroll to the bottom of a window, usually there's lots of extra white space at the bottom of the window. You've been playing with the preferences again, haven't you? You must have turned on the Scroll by whole pages preference. This is a feature. When you scroll down by a page, MT-NewsWatcher always makes the previous bottom line in the window the new top line in the window, even at the end of the text or list.
Related Questions

I want to display a bitmap behind my TRichEdit control. Is this possible?

Yet Another Code Site - FAQs
I do not know of a way to do this with Rich Edit 1.0 controls. Kimberly says that it cannot be done: "As it ends up, RE 1.0 doesn't support transparent background. It paints the background in the WM_PAINT message instead of the WM_ERASEBKGND." Kimberly went on to point out that Rich Edit 2.0 controls can be created with the WS_EX_TRANSPARENT style to allow a background bitmap to show through.
Related Questions

How do determine the current insert/overwrite mode for a TRichEdit?

Yet Another Code Site - FAQs
The native Rich Edit control will not tell you whether the next character keyed will be inserted or overwritten. You will have to trap keystrokes and track the insert/overwrite mode yourself. One way to do this is to write your own class, presumably derived from TRichEdit, to track the control's current insert/overwrite state. Note that Rich Edit controls are in insert mode when created.
Related Questions

The TRichEdit vertical scrollbar disappears sometimes. Is there a fix or work-around?

Yet Another Code Site - FAQs
This appears to be a bug in the Rich Edit control or in the TRichEdit class. I have found some magical code in TRichEdit (meaning that I have not bothered to completely debug it) that may be responsible. Anyway, here is a workaround (along with my comments to myself): // apparently there is a bug which we must work around... if you drop a large // file (> 32k?) on a TRichEdit, the vertical scroll bar is not enabled until the // control is manually scrolled down a page.
Related Questions

How many lines of text can I use?

Seton.com - Help - FAQ's - Answers
If you choose to have numbering and/or bar codes on your tags, you can have up to 3 printed lines of text above the number box. If you choose no numbering or bar code, you can have up to 5 lines of text.
Related Questions

Why do my prints have lines through text or images?

Frequently asked questions like, How do, Why does, How can I...
This is something that usually happens when (a) you replace an empty cartridge with a full one. (b) you have not used your printer for a few days. It is usually due to either clogs in the tiny print nozzles or air trapped between the print nozzles and the new flow of ink from the cartridge.
Related Questions

How many lines of text can I have on my label?

Seton.com - Help - FAQ's - Answers
This depends on what size label you are designing. Most of the label sizes can accommodate up to 5 lines. The smaller sizes will only allow 3 or 4 lines.
Related Questions

Top of Page Can I have more than three lines of engraving text?

Frequently Asked Questions on Crystal Awards Supplier .co.uk
Yes. But bear in mind the actual size of the engraving area on your chosen product. Typically this will be no more than 200mm x 200mm. If you are satisfied that your inscription will fit within the engraving area available, please contact Crystal-Awards-Supplier before placing your order and we will reply with instructions on how to proceed with your custom engraving requirements. There is no charge for engraving of extra lines of text.
Related Questions

a. I have more than five lines of text and a logo. How can I upload these?

Preinked Stamps and Embossers at Discount Prices - Reddy Sta...
Some stamps may have more than 10 lines of text plus logo. In these cases, please fax the text and e-mail the logo in 300 dpi jpeg.
Related Questions

How many lines of text can I have printed on my WebDecal and what text should I put on it?

Welcome to the WebDecal FAQ Database
Webdecals are available with 1 to 6 lines of text in any combination of letter sizes. If your decal reaches more than 12 inches in height, we may cut it into 2 pieces to facilitate application. We do not recommend applying large static cling decals to the outside of your vehicle. Apply on the inside or switch to adhesive letters that will be easier to care for and will look more professional.
Related Questions

Got A Question? Ask Our Community!


More Questions >>

© Copyright 2007-2008 QueryCAT
About • Webmasters • Contact