473,396 Members | 1,749 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,396 software developers and data experts.

Percentage or "Flood" control wanted

Mabry has a nice control which shows the percentage full in both colour
and as a number(i.e. If I set it to 50 and red half the box will be red,
the other half white and the number 50 will appear). Unfortunately they
have no plans to .net it. Does anyone know of a .net equivalent.
I know about the MS progress indicator but I cannot colour control that.

Thanks

Jack Russell
Jul 21 '05 #1
4 1284
Look up GDI+ FillRectangle. GDI+ is real easy to get into oncce you cross
the initial barrier of understanding some of the library.

Worth the effort to. With a little GDI+ self training my windows apps look
like loverly web applications.
Jul 21 '05 #2
Josh wrote:
Look up GDI+ FillRectangle. GDI+ is real easy to get into oncce you cross
the initial barrier of understanding some of the library.

Worth the effort to. With a little GDI+ self training my windows apps look
like loverly web applications.


Josh,

Thanks for that , got the fill part working but cannot place text on top
of it, any ideas?

Jack Russell
Jul 21 '05 #3
> Thanks for that , got the fill part working but cannot place text on top
of it, any ideas?

Heres where I started with GDI+, I recommend it.

http://www.bobpowell.net/faqmain.htm
.... heres a sample...in VB (urgh. Sorry to admit I'm VBist)

Dim fn As New Font("Times New Roman", 10)
e.Graphics.DrawString("Hello World!", fn, Brushes.Black, 10, 10)

fn.Dispose()

Jul 21 '05 #4
Josh wrote:
Thanks for that , got the fill part working but cannot place text on top
of it, any ideas?


Heres where I started with GDI+, I recommend it.

http://www.bobpowell.net/faqmain.htm
.... heres a sample...in VB (urgh. Sorry to admit I'm VBist)

Dim fn As New Font("Times New Roman", 10)
e.Graphics.DrawString("Hello World!", fn, Brushes.Black, 10, 10)

fn.Dispose()

Thanks Josh, you are a scholar and a gentleman!
Jul 21 '05 #5

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

Similar topics

43
by: Dom | last post by:
can someone please help me display text in the console cout << "Testing"; in a different colour to the default one
8
by: Allen | last post by:
Hi all, I have a tree object I'm writing that searches itself using a recursive search. Thing is, I'm wanting to also include the ability to simply transfer execution if I want ("one-way...
12
by: Steffen | last post by:
Hi, I stumbled across the following error foo.cc: In function `int main()': foo.cc:15: error: no matching function for call to `Bar::foo(int)' foo.cc:9: error: candidates are: void...
4
by: Jack Russell | last post by:
Mabry has a nice control which shows the percentage full in both colour and as a number(i.e. If I set it to 50 and red half the box will be red, the other half white and the number 50 will appear)....
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 393 open (+15) / 3315 closed (+17) / 3708 total (+32) Bugs : 908 open (+22) / 5975 closed (+49) / 6883 total (+71) RFE : 223 open...
14
by: Alex | last post by:
I saw the topic of "wired code " about "point to array" and know a little about it. But I am still confused about the question below: I define a point to array "b" int (*b); then I locate the...
0
by: WORKING IN FAITH | last post by:
" Interviewing Seminar LEADERS; How did I do that ? Faith that's HOW... " Inbox Craig Somerford to Apple, Katrinas, Bruno, Wiz, Kettering, City, Katie, CBC, Harvard, (bcc:Local), (bcc:Local),...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.