| View previous topic :: View next topic |
| Author |
Message |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1567
|
Posted: Sat Feb 15, 2003 1:37 am Post subject: |
|
|
I've updated the VDSOBJ02.DLL and it now contains a new GAUGE control which has a percentage text over the progress/gauge. It also allows different style gauges - NEEDLE, PIE, VERTICAL, the default is horizontal. You can also hide the text if you so choose to as well as decide the colors for the forecolor, backcolor and background colors of the gauge with the use of the STYLE object.
DOWNLOAD HERE |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sat Feb 15, 2003 6:28 am Post subject: |
|
|
Hey Serge,
I found ya can use a text element on a progress bar - if ya
add a GROUP first (same size as the text element).
It can't be transparent, but it looks OK if it's centered...
| Code: |
OPTION SCALE, 96
OPTION DECIMALSEP, "."
Title By Mac
DIALOG CREATE,"Test Prog",-1,0,222,55
DIALOG ADD,STYLE,S1,MS Sans Serif,8,C,BACKGROUND
DIALOG ADD,BUTTON,Start,1,5,50,22
DIALOG ADD,PROGRESS,ProgBar,25,5,212,24
DIALOG ADD,GROUP,G1,31,95,32,12
DIALOG ADD,TEXT,T1,31,95,32,12,"0%",,S1
DIALOG SHOW
:EVLOOP
WAIT EVENT
goto @event()
:StartBUTTON
%x = 0
REPEAT
WAIT ".01"
DIALOG SET, T1, %x%
DIALOG SET, ProgBar, %x
%x = @succ(%x)
UNTIL @greater(%x, 100) @event()
goto EVLOOP
:CLOSE
EXIT
|
Also - ya can prolly use the bitbtn in the earlier example if ya
use @sendmsg() and the WM_SETTEXT command.
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sat Feb 15, 2003 7:31 am Post subject: |
|
|
OR, if ya have too much time on your hands....
Ya can make a simple text based progress bar with
whatever colors ya want...
| Code: |
OPTION SCALE, 96
OPTION DECIMALSEP, "."
Title By Mac
DIALOG CREATE,"Test Prog",-1,0,214,55
DIALOG ADD,STYLE,S1,MS Sans Serif,8,,$FFFFCC
DIALOG ADD,STYLE,S2,MS Sans Serif,8,C,$FFCC00
DIALOG ADD,BUTTON,Start,1,5,50,22
DIALOG ADD,TEXT,ProgBarBG,30,5,204,20,,,S1
DIALOG ADD,TEXT,ProgBar,32,7,1,16,,,S2
DIALOG HIDE, ProgBar
DIALOG ADD,TEXT,T1,34,95,,,"0%",,TRANSPARENT
DIALOG SHOW
:EVLOOP
WAIT EVENT
goto @event()
:StartBUTTON
DIALOG SHOW, ProgBar
%x = 0
REPEAT
WAIT ".01"
DIALOG SET, T1, %x%
DIALOG SETPOS, ProgBar,,,@prod(%x, 2)
%x = @succ(%x)
UNTIL @greater(%x, 100) @event()
goto EVLOOP
:CLOSE
EXIT
|
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Sun Feb 16, 2003 12:01 am Post subject: |
|
|
Hi Prakash and Mac,
thanks for your replies
- prakash: i haven't had a chance to look at the GAUGE control as yet and will do so soon - thanks for adding that control,
- mac: i like your second idea as it adds a nice colour scheme to the interface (your first one is also worth keeping in mind)
Serge _________________
|
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Sun Feb 16, 2003 6:07 am Post subject: |
|
|
hi prakash,
i like what you have done with the new GAUGE control - looks and works great!!!
Serge _________________
|
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1567
|
Posted: Sun Feb 16, 2003 2:50 pm Post subject: |
|
|
Thanks only took about an hour to add that new control in, I will be adding more controls in soon . |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Wed Feb 19, 2003 7:00 am Post subject: |
|
|
i'll look forward to them
if you have the time, would it be possible to have a print command for GRID's?
Serge _________________
|
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1567
|
Posted: Wed Feb 19, 2003 4:16 pm Post subject: |
|
|
| Printing for GRID has been a long running quest. I'm looking around for a replacement for the StringGrid I'm using now which supports printing. As of now trying to print that grid would not look very pretty - badly mis-aligned fields. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|