QueryCAT Logo
Search 5,000,000+ questions and answers.

Frequently Asked 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.

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).

How do I support an overwrite mode in a TextBox?

TextBox - Windows Forms FAQs
You can handle the textbox's KeyPress event and if you want the keypress to be an overwrite, just select the current character so the keypress will replace it. The attached sample has a derived textbox that has an OverWrite property and a right-click...

How can I insert or overwrite parts of a dictation?

Custom Speech USA - FAQs - We teach computers how to listen
When recording is completed, the dictation audio can be reviewed in real-time. Options like insert, overwrite, append, fast forward, rewind and pause become available. These options can be configured to be activated by any touch-tone key.

How do you determine the server SQL mode?

Appendix A. Frequently Asked Questions About MySQL 5.1
You can set the default SQL mode (for mysqld startup) with the --sql-mode option. Using the statement SET [SESSION|GLOBAL] sql_mode='modes', you can change the settings from within a connection, either locally to the connection, or to take effect globally. You can retrieve the current mode by issuing a SELECT @@sql_mode statement.

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"); }

What is the difference between Insert recording and overwrite recording?

Olympus DS-4000 Professional Digital Recorder Frequently Ask...
Overwrite will overwrite a previously recorded file from any point within the file. Insert recording will insert voice recordings into previously recorded file.

When I insert text it appears to overwrite the existing text. What do I do?

Frequently Asked Questions
Press Ctrl-L to refresh the screen. It didn't actually overwrite the message text but it sure is confusing.

Why I cannot overwrite the @...GET output by @...SAY in GUI mode?

VFS FAQ - FlagShip Frequently Asked Support Questions
Since this is illegal, also in Clipper ;-) The display should/need to be handled by the GET object itself. In textual mode, which has only one screen layer = the screen buffer self, you of course can override this HW buffer and hence "tricking" the object display.

Is there an overwrite/overstrike mode for text/entry widget?

Tk Usage FAQ (Frequently Asked Questions)
Not by default, but you can change the tkTextInsert and tkEntryInsert library procedures to include this with the following: proc tkTextInsert {w s} { global tkPriv if {[string match {} $s] || [string match "disabled" [$w cget -state]])} { return } if {[catch { if {[$w compare sel.first <= insert] && [$w compare sel.last >= insert]} { $w delete sel.first sel.

Current user: how do I determine who the current user is?

Flicks Software's FAQ
Use the OCX component to find out who is logged in, http://www.flicks.com/authentix/currentusername.htm You should be able to add the component to your cgi or asp program, or you can get it out of HTTP_AUTHORIZATION and then base64 decode it. Note that if NTCR (Integrated Windows Authentication in Windows 2000) is turned on, then CurrentUserName may not return the expected result. See the documentation to find the cause and workaround.

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.

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.

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.

How can I insert the current date and/or time in my note?

Microsoft OneNote Frequently Asked Questions
If you're running SP1 or later you can do it with Insert | Date & Time or by pressing ALT+SHIFT+F

What is an insert?

Album Tips frequently asked questions, mats, albums, inserts...
It is sometimes called a base-page. It is the foundation of the album and is attached to the binding of the cover by pins, hinges, clips and stitching.

How to determine which integration mode to use?

Mediachase FileUploader Tutorial
Different integration modes allow you to integrate 'Step by Step' FileUploader Control into your existed Application. Simple - http-module is disabled, Mediachase.FileUploader.Web.UI.McHtmlFileInput control elements are used Medium - http-module is activated, Mediachase.FileUploader.Web.UI.McHtmlFileInput control elements are used, large file optimization is not used Full - http-module is activated, Mediachase.FileUploader.Web.UI.

Why can't I set the minimum insert size in the PE alignment mode?

FAQ
Two reasons. The first is that the current protocol tends to produce very short insert size or even overlaped two ends. The second reason is due to the algorithm used by Maq. Without setting minimum insert size helps to get slightly better, though a bit more conservative, alignment.

How do I determine the maximum current of a capacitor?

Jennings Technology - Technotes - Vacuum Relays, Vacuum Capa...
The maximum allowable capacitor RMS current varies as a function of operating frequency, assuming there is a constant RMS peak working voltage. Standard derating curves are published in our catalog. A complete response to this question can be found in the Jennings TechNote C-3: "The Effects of Current on Vacuum Capacitors" Yes, the torque required to change capacitance values does change over time. The changes in torque will appear randomly and are not directly related to time or capacitor age.
More Questions >>

© Copyright 2007-2012 QueryCAT
About • Webmasters • Contact