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 1, 2  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Sun Feb 09, 2003 7:25 am    Post subject: progress bar and text element on top Reply with quote

is there any reason that i can't have a text element showing on top of a progress bar so that i can have % count showing in the middle of my progress bar?

i placed the DIALOG ADD, TEXT code after the DIALOG ADD,PROGRESS which means that the text should be on top of the progress bar and hence visible but helas...it is not to be...

anyone know what is going on there?

thanks in advance

Serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Sun Feb 09, 2003 7:46 am    Post subject: Reply with quote

I tried that also long time ago and I just couldn't make it work. But you could build your
own progress bar. Look at a couple of good examples here:

http://www.vdsworld.com/forum/viewtopic.php?t=716

Greetz
Dr. Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Sun Feb 09, 2003 7:56 am    Post subject: Reply with quote

Hi Dr Dread,

i had seen that you can make your own but it struck me as odd that i can't put a text element on top of a progress bar and wondered if perhaps i was missing something Confused

looks like i'll have to make my own Sad

thanks for your help

Serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Mac
Professional Member
Professional Member


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

PostPosted: Sun Feb 09, 2003 8:07 am    Post subject: Reply with quote

There are just some elements that you can't show anything
on top of - lists for example... Confused

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 09, 2003 8:14 am    Post subject: Reply with quote

i didn't know that, Mac

i assumed that you could put elements freely on top of any elements... goes to show how assumptions sometimes are unfounded...

Serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Mac
Professional Member
Professional Member


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

PostPosted: Sun Feb 09, 2003 8:19 am    Post subject: Reply with quote

Actually you can add some elements over a list (although not text),
but there's some elements that seem to have priority over others.

Ya just gotta play with 'em and see what works. Wink

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
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sun Feb 09, 2003 1:59 pm    Post subject: Reply with quote

... For example, checkboxes can be put over other elements.

Here's an example:
http://www.vdsworld.com/~freezingfire/checkbox.dsc

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Tue Feb 11, 2003 6:43 am    Post subject: Reply with quote

thanks for the info, in the future i will do some overlay checking first so as to know what can go over what

Serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Feb 11, 2003 9:33 pm    Post subject: Reply with quote

Here's a workaround using a checkbox without the box for the text. Wink

Code:
DIALOG CREATE,Text on Progress Bar,-1,0,240,160
  DIALOG ADD,PROGRESS,PROGRESS1,35,44,,,0
  DIALOG ADD,CHECK,CHECK1,38,70,88,18,Your text here...
  DIALOG ADD,BITBTN,BITBTN1,38,64,21,18
  DIALOG ADD,BITBTN,BITBTN2,38,158,21,18
  DIALOG DISABLE,BITBTN1
  DIALOG DISABLE,BITBTN2
  DIALOG SHOW
  DIALOG FOCUS,PROGRESS1
WAIT EVENT
EXIT

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Feb 11, 2003 9:37 pm    Post subject: Reply with quote

...Or here's a less nice example, but is a bit more simple...

Code:
DIALOG CREATE,Text on Progress Bar,-1,0,240,160
  DIALOG ADD,PROGRESS,PROGRESS1,35,44,,,0
  DIALOG ADD,BITBTN,TEXT,38,72,90,18,,Your text here...
  DIALOG SHOW
rem -- The following line is optional --
  DIALOG DISABLE,TEXT
WAIT EVENT
EXIT


EDIT: Changed code to fix an error.

_________________
FreezingFire
VDSWORLD.com
Site Admin Team


Last edited by FreezingFire on Wed Feb 12, 2003 8:33 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Wed Feb 12, 2003 12:46 pm    Post subject: Reply with quote

thanks for that freezingfire, i think at this stage that i will use your second idea

i had not thought of using a bitbutton - good idea

your second code generated an error - can't show a disabled element!

the following code worked fine

Code:

DIALOG CREATE,Text on Progress Bar,-1,0,240,160
  DIALOG ADD,PROGRESS,PROGRESS1,35,44,,,0
  DIALOG ADD,BITBTN,TEXT,38,72,90,18,,Your text here...
  DIALOG SHOW
 
  DIALOG DISABLE,TEXT
 
  WAIT EVENT
 
  EXIT


Serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed Feb 12, 2003 8:36 pm    Post subject: Reply with quote

OOPS... Embarassed

That wasn't the right example... I had two VDS windows open; one had
code with the error in it and the other didn't. I copied the wrong one, but
it looks like you figured it out though! Wink

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Thu Feb 13, 2003 10:57 am    Post subject: Reply with quote

no problem freezingfire - i just wanted to point out the error, didn't mean anything else by it

we all make mistakes, even the best of us Smile

Serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Feb 13, 2003 10:29 pm    Post subject: Reply with quote

I know for sure that I make mistakes, and I am not the best. Laughing

No offense taken. Wink

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Fri Feb 14, 2003 11:01 pm    Post subject: Reply with quote

hi freezingfire

i tried the bitbtn code but the caption won't change with DIALOG SET - i needed it to change to reflect the % of the progress bar

don't worry about trying to find a solution to that as i ended up using the status bar - not my preferred choice but it works straight away

thanks for your suggestions

Serge

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