473,794 Members | 2,708 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Single Pixel update bar for progress bars

I want to do a single pix update bar instead of the big block that progress
bars usually use. I can't seem to find any info on how to do this.

Thanks in advance for any help,
Kyle
Nov 17 '05 #1
6 2516
"Kyle" <ku****@l3-com.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
I want to do a single pix update bar instead of the big block that progress bars usually use. I can't seem to find any info on how to do this.


I'm not sure I understand. A single pixel-high progress bar? You'd probably
be better off posting in a UI group to see if the standard control will do
that. If not, or you want to roll your own, try a GDI group and perhaps take
a gander at FillRect() or Rectangle() to draw the progress par itself.

Regards,
Will
Nov 17 '05 #2
"William DePalo [MVP VC++]" <wi***********@ mvps.org> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
"Kyle" <ku****@l3-com.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
I want to do a single pix update bar instead of the big block that

progress
bars usually use. I can't seem to find any info on how to do this.


I'm not sure I understand. A single pixel-high progress bar? You'd probably
be better off posting in a UI group to see if the standard control will do
that. If not, or you want to roll your own, try a GDI group and perhaps take
a gander at FillRect() or Rectangle() to draw the progress par itself.


He wants the standard control. He just wants the PBS_SMOOTH style.
http://msdn.microsoft.com/library/de...bar/styles.asp

Ken
Nov 17 '05 #3
Thanks very helpful...
I can't find the "style" attribute anywhere in the .NET IDE listings for
progress bar. I assume that one needs to customize a control or take a
circular route to build this style of progress bar.
Kyle
"Ken Alverson" <US********@Alv erson.net> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
"William DePalo [MVP VC++]" <wi***********@ mvps.org> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
"Kyle" <ku****@l3-com.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
I want to do a single pix update bar instead of the big block that progress
bars usually use. I can't seem to find any info on how to do this.


I'm not sure I understand. A single pixel-high progress bar? You'd probably be better off posting in a UI group to see if the standard control will do that. If not, or you want to roll your own, try a GDI group and perhaps take a gander at FillRect() or Rectangle() to draw the progress par itself.


He wants the standard control. He just wants the PBS_SMOOTH style.

http://msdn.microsoft.com/library/de...bar/styles.asp
Ken

Nov 17 '05 #4
"Kyle" <ku****@l3-com.com> wrote in message
news:%2******** **********@TK2M SFTNGP10.phx.gb l...
Thanks very helpful...
I can't find the "style" attribute anywhere in the .NET IDE listings for
progress bar. I assume that one needs to customize a control or take a
circular route to build this style of progress bar.


You didn't mention earlier if you were using .Net or MFC or WTL or straight
Win32 or what.

That said, I don't know if the style property of the native progress bar is
accessible via .Net. Perhaps someone more knowledgeable of winforms will
chime in here.

Ken
Nov 17 '05 #5
Ken,
Sorry.. I am using .NET with the standard IDE and the standard forms, tools,
etc. Just put a normal progress bar on a dialog and wanted to update the
bar one pixel at a time. There isn't a Style property anywhere I can find.
Looks like the create must be called with the style flags... This is
probably straight forward for some gui guys but I am a bit of a newbie to
this.

Thx
Kyle
"Ken Alverson" <US********@Alv erson.net> wrote in message
news:u2******** ******@TK2MSFTN GP10.phx.gbl...
"Kyle" <ku****@l3-com.com> wrote in message
news:%2******** **********@TK2M SFTNGP10.phx.gb l...
Thanks very helpful...
I can't find the "style" attribute anywhere in the .NET IDE listings for
progress bar. I assume that one needs to customize a control or take a
circular route to build this style of progress bar.
You didn't mention earlier if you were using .Net or MFC or WTL or

straight Win32 or what.

That said, I don't know if the style property of the native progress bar is accessible via .Net. Perhaps someone more knowledgeable of winforms will
chime in here.

Ken

Nov 17 '05 #6
Kyle schrieb:
I want to do a single pix update bar instead of the big block that progress
bars usually use. I can't seem to find any info on how to do this.


There is a How-To and a Sample for C#, but it should be
applicable to C++:

http://support.microsoft.com/default...b;en-us;323116

Gruß RH

Nov 17 '05 #7

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

Similar topics

0
613
by: Michael Widenius | last post by:
Hi! >>>>> "Bennett" == Bennett Haselton <bennett@peacefire.org> writes: Bennett> Is there any way to do a long update/delete on a table such that you can Bennett> view the progress as the command runs, so that long before it's over, you Bennett> have some idea of what the total running time will be? Bennett> The way I did it was to write a perl script that takes the total range of Bennett> values for the primary key field in the...
0
2226
by: Jim C Nguyen | last post by:
I have a table with ~2.2 million rows. Sometimes when I do an update to one single row it will instead update ALL of the rows using the same update. This happens every one in about 500,000 updates to a single row. I am running mysql 4.0.14 in WinXP. I am using PHP to do the update. I am thinking something in the update itself is causing mysql to do this. I don't have the exact SQL statement that causes the error but I do have...
0
1460
by: Martin Platt | last post by:
Hi, I'm looking into various options for a fairly simple backup utility for our application. I have no problems being able to backup, find restorable backup files, and restore then. What I'd like to be able to do is hook into some event in Sql that would allow me to show progress of these tasks.
1
4249
by: Xarky | last post by:
Hi, I am trying to use progress bars, where the progress is seen as vertical. I am succeding to manage progess bars, where progress is increasing horizontally, but not vertically. Can someone help me out Thanks in Advance
4
3278
by: aj | last post by:
Alan, you can achieve this by using XMLHttp Async functionality in a javascript file. Create an aspx page in which execute long running SQL query, then do an XMLhttp post to that page from a js function. In the javascript create 2 funtion Call LoadData in the window onload event.
14
1984
by: Todd Denlinger | last post by:
Ok, I know how to upload a file in asp.net using the <input type="file" runat="server"> control. What I don't know how to do is monitor the progress of the upload so that I can show the end-user a progress bar, or something. Anyone have any ideals or can point me to a sample? Thanks,
11
2159
by: simon | last post by:
when I execute aspx page, it works about 5 minutes - I calculate some statistics. Is there some way, that I can show user time bar or smething similar? That he nows, that page is working. Thank you, Simon
5
2425
by: Keith Rebello | last post by:
I have a couple of progress bars that indicate the progress of a math-intensive application. They are working well. The only problem is that the progress indicator is gray in color. Is it possible to change the color of the bars - they're usually blue in other applications? Any help would be greatly appreciated. I'm using VB.Net Standard, 2003.
11
5248
by: brother52 | last post by:
I am using My.Computer.FileSystem.CopyFile() to copy a bunch of files from one directoy to another, and would like to display a progress bar on the screen for each file being copied. Is this possible?
0
9671
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10433
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10212
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10161
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6777
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5560
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4112
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2919
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.