473,226 Members | 1,220 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,226 software developers and data experts.

Highlighting Text (at high volume)

Hi,

I am developing an application which highlights changes in streaming
data (i.e. market changes.)

I have developed this initially using the BackColor and ForeColor
settings on the relevant Rectangle object which needs to be
highlighted. This works, however, as the volume of changes increase,
the CPU consumed becomes too high to be acceptable. (60% +)

I have thought about overlaying a BMP object over the existing text,
however, I am not sure a) what the best method is for doing this b) if
this method will significantly decrease CPU consumption.

Has anyone run into this issue before? Any ideas??

As an example, this is how I would set the relevant region back to its
initial state (Black backgroud with Gray text)

Thanks for any help.

Mike


formElements.MainForm.tableModel1.Rows[idxRow].Cells[formElements.iMktAskIdx].BackColor
= Color.Black;

formElements.MainForm.tableModel1.Rows[idxRow].Cells[formElements.iMktBidIdx].BackColor
= Color.Black;

formElements.MainForm.tableModel1.Rows[idxRow].Cells[formElements.iODLAskIdx].BackColor
= Color.Black;

formElements.MainForm.tableModel1.Rows[idxRow].Cells[formElements.iODLBidIdx].BackColor
= Color.Black;
formElements.MainForm.tableModel1.Rows[idxRow].Cells[formElements.iMktAskIdx].ForeColor
= Color.SlateGray;

formElements.MainForm.tableModel1.Rows[idxRow].Cells[formElements.iMktBidIdx].ForeColor
= Color.SlateGray;

formElements.MainForm.tableModel1.Rows[idxRow].Cells[formElements.iODLAskIdx].ForeColor
= Color.SlateGray;

formElements.MainForm.tableModel1.Rows[idxRow].Cells[formElements.iODLBidIdx].ForeColor
= Color.SlateGray;

invalidatedRow.X =
formElements.MainForm.table1.CellDataRect.X;
invalidatedRow.Y =
formElements.MainForm.table1.CellDataRect.Y + (idxRow *
formElements.MainForm.table1.RowHeight);
invalidatedRow.Height =
formElements.MainForm.table1.RowHeight;
invalidatedRow.Width =
formElements.MainForm.table1.CellDataRect.Width;
if (formElements.MainForm.InvokeRequired)
{
//formElements.MainForm.Refresh();
formElements.MainForm.BeginInvoke(new
QMGUI.Dealer.EventSink.d_InvalidateForm(Invalidate Form), new object[] {
formElements.MainForm, invalidatedRow });
formElements.MainForm.BeginInvoke(new
QMGUI.Dealer.EventSink.d_UpdateForm(UpdateForm), new object[] {
formElements.MainForm });
}

Jan 16 '06 #1
0 968

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Irmen de Jong | last post by:
Hi, Things like Twisted, medusa, etc.... that claim to be able to support hundreds of concurrent connections because of the async I/O framework they're based on.... can someone give a few...
4
by: YeeCN | last post by:
Hi, I need to write an application that requires HUGH volume of number crunching (tens of billions of calculations). Speed is the single most important factor for me. I am wondering is .NET...
5
by: Adelson Anton | last post by:
Hi all, Ok, this is what I want to do: When you press, say Ctrl+K ( it doesn't matter which event), I want the , say, second word in the document to be highlighted. Anyone has any idea how...
3
by: etienno | last post by:
Hi, what would be the best way to transfert high volume data (100 tables, 500Meg each) between DB2/AS400 to Sybase? Thanks Etienne. Montreal
2
by: Arsen V. | last post by:
Hello, Did anyone have some experience with the following: 1) Need to track high volume of impressions - 20,000,000+ per day 2) Backend is SQL Server 2000 3) Webfarm of IIS with ASP.NET 4)...
5
by: Ron Mexico | last post by:
I have written a graphing engine (very similar to what BigCharts.com offers). Basically, it's an ASPX page that accepts parameters and calls back-end business objects (dlls) to create a graph. ...
4
by: cefrancke | last post by:
In an effort to optimize and speed up applications..... (I have a minimum 15,000 record (20+ fields) database, multi-user(<5) over WAN) In theory... Is there a technique out there where...
1
by: Tommaso Caldarola | last post by:
I need to transfer big files (up to 10 Gb), now I'm using IIS via Remoting with chunk of bytes (up to 500Kb). In the following article: Middle-Tier Hosting: Enterprise Services, IIS, DCOM, Web...
2
by: =?Utf-8?B?RGFtZW9u?= | last post by:
Hi - I am attempting to write lines to a file at high volume, multiple threads. Here is my scenario: (initial "WriteToFile" object created via a parent multithreaded process, which receives...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.