473,721 Members | 2,081 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 2512
"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
2219
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
1459
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
4247
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
3266
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
1974
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
2150
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
2423
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
5241
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
9227
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
9145
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,...
0
9081
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8020
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6676
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
4497
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4761
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2590
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2143
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.