View previous topic :: View next topic |
Author |
Message |
cnodnarb Professional Member
Joined: 11 Sep 2002 Posts: 762 Location: Rockeledge, GA
|
Posted: Thu Sep 12, 2002 8:11 pm Post subject: Status Bar Trick |
|
|
There are three different "sections" of a vds status bar, left, center and right. You can use all three to display information. By using the @tab() function, you can access the center and right sections.
Code: |
DIALOG CREATE,New Dialog,-1,0,240,160,resizable
DIALOG ADD,STATUS,STATUS1,STATUS1
DIALOG SHOW
dialog set,status1,LEFT@tab()CENTER@tab()RIGHT" "
:evloop
wait event
goto @event()
:resize
goto evloop
:close
exit
|
|
|
Back to top |
|
|
DaveR Valued Contributor
Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Sun Dec 24, 2006 4:13 pm Post subject: |
|
|
Here's a handy trick I use all time with VDS 5
If your status bar only has one panel you can center align any text you set by using @tab()
Code: | DIALOG CREATE,New Dialog,-1,0,240,160
DIALOG ADD,STATUS,STATUS1,
DIALOG SHOW
dialog set,status1,@tab()Centered status message
:evloop
wait event
goto @event()
:close
exit |
_________________ cheers
Dave |
|
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
|
|