ComputerForum.com ComputerForum.com  
TigerDirect
 
Go Back   Computer Forum > Computer Software > General Software

Reply
 
LinkBack Thread Tools Display Modes
Old 03-28-2006, 05:48 PM   #1 (permalink)
Bronze Member
 
Daniel A-S's Avatar
 
Join Date: Mar 2006
Location: Swanley, Kent, U.K
Age: 20
Posts: 38
Default Delphi Pascal Question

Hi.

Basically what I want is a timer with an interval of 3000 to control a progress bar, as the timer counts up to 750, the progress bar moves up 25/100, as the timer counts up 1500, the progress bar moves up to 50/100 e.t.c.

At the moment I've got it like this:

begin
if Timer1.interval >= 0 < 750
then ProgressBar1.position := 25;
if Timer1.interval >= 750 < 1500
then ProgressBar1.position := 50;
if Timer1.interval >= 1500 < 2250
then ProgressBar1.position := 75;
if Timer1.interval <= 3000
then ProgressBar1.position := 100
end;

Any help appreciated.
Thanks.
__________________
Danny Smith
Kent, U.K
Daniel A-S is offline   Reply With Quote


Old 03-28-2006, 05:59 PM   #2 (permalink)
P.I Dragon
 
dragon2309's Avatar
 
Join Date: May 2005
Location: KENT, UK
Age: 19
Posts: 8,344
Default

i dont know the language your prgoramming in but i can use common sense and look at it, if usual syntax structure applies then that looks very plausable. Is there a problem with it or are you just trying to see waht would work...??

Ooooh, look at that, swanley, i live in rochester, lol, small world hey...

dragon
__________________
Intel Core2Duo E6600 @ 3.1Ghz - (__CPU__)
eVGA 680i SLi - (__MOB__)
4Gb Corsair Dominator DDR2-800 (4x1024Mb) - (__RAM__)
250Gb Western Digital SATAII 7200rpm - (__HDD__)
nVidia BFG 8800GTS OC 320Mb - (__GFX__)
LG DVD+/-RW 18x DVD-RAM - (__OPT__)
Triple Boot - [XP Pro] + [Vista Ultimate] + [Ubuntu 7.10] - (__OS__)

[3DMARK'03 :: 25,587] --- [3DMARK'05 :: 13,989] --- [3DMARK'06 :: 8791] - (__BENCHMARKS__)


dragon2309.co.uk - a little slice of geek

dragon2309 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:47 PM.


Powered by: vBulletin Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Copyright © 2002-2007 Computer Forum and Web Design Forum