473,386 Members | 1,817 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,386 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 976

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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.