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 


Status Bar Trick

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Knowledge Base
View previous topic :: View next topic  
Author Message
cnodnarb
Professional Member
Professional Member


Joined: 11 Sep 2002
Posts: 762
Location: Rockeledge, GA

PostPosted: Thu Sep 12, 2002 8:11 pm    Post subject: Status Bar Trick Reply with quote

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
View user's profile Send private message AIM Address
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Sun Dec 24, 2006 4:13 pm    Post subject: Reply with quote

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

 
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