forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


progress bar and text element on top
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1567

PostPosted: Sat Feb 15, 2003 1:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Feb 15, 2003 6:28 am    Post subject: Reply with quote

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... Wink
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 Smile

_________________
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
View user's profile Send private message Send e-mail
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Feb 15, 2003 7:31 am    Post subject: Reply with quote

OR, if ya have too much time on your hands.... Laughing

Ya can make a simple text based progress bar with
whatever colors ya want... Wink
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 Smile

_________________
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
View user's profile Send private message Send e-mail
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Sun Feb 16, 2003 12:01 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Sun Feb 16, 2003 6:07 am    Post subject: Reply with quote

hi prakash,

i like what you have done with the new GAUGE control - looks and works great!!!

Serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1567

PostPosted: Sun Feb 16, 2003 2:50 pm    Post subject: Reply with quote

Thanks Smile only took about an hour to add that new control in, I will be adding more controls in soon Smile.
Back to top
View user's profile Send private message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Wed Feb 19, 2003 7:00 am    Post subject: Reply with quote

i'll look forward to them Smile

if you have the time, would it be possible to have a print command for GRID's?

Serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1567

PostPosted: Wed Feb 19, 2003 4:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group