| View previous topic :: View next topic |
| Author |
Message |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Sun Feb 09, 2003 7:25 am Post subject: progress bar and text element on top |
|
|
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 |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Sun Feb 09, 2003 7:56 am Post subject: |
|
|
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
looks like i'll have to make my own
thanks for your help
Serge _________________
|
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sun Feb 09, 2003 8:07 am Post subject: |
|
|
There are just some elements that you can't show anything
on top of - lists for example...
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 09, 2003 8:14 am Post subject: |
|
|
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 |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sun Feb 09, 2003 8:19 am Post subject: |
|
|
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.
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 |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Tue Feb 11, 2003 6:43 am Post subject: |
|
|
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 |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Feb 11, 2003 9:33 pm Post subject: |
|
|
Here's a workaround using a checkbox without the box for the text.
| 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 |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Feb 11, 2003 9:37 pm Post subject: |
|
|
...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 |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Wed Feb 12, 2003 12:46 pm Post subject: |
|
|
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 |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Wed Feb 12, 2003 8:36 pm Post subject: |
|
|
OOPS...
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!  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Thu Feb 13, 2003 10:57 am Post subject: |
|
|
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
Serge _________________
|
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Feb 13, 2003 10:29 pm Post subject: |
|
|
I know for sure that I make mistakes, and I am not the best.
No offense taken.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Fri Feb 14, 2003 11:01 pm Post subject: |
|
|
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 |
|
 |
|
|
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
|
|