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 


Table Element, Howto align centre items?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
sawang
Newbie


Joined: 06 Mar 2005
Posts: 8

PostPosted: Thu Oct 20, 2005 1:53 pm    Post subject: Table Element, Howto align centre items? Reply with quote

How do i centre all the items in a table element? API? Undoumented?Pls Help
Back to top
View user's profile Send private message
WidgetCoder
Contributor
Contributor


Joined: 28 May 2002
Posts: 126
Location: CO, USA

PostPosted: Thu Oct 20, 2005 2:58 pm    Post subject: Reply with quote

Try this:

Code:

  DIALOG CREATE,New Dialog,-1,0,259,160
  rem add "C" after the size "[80C]"
  rem you can also use "R" for right and "L" for left
  DIALOG ADD,TABLE,TABLE1,6,6,247,147,Column 1[80C]|Column 2[80C]|Column 3[80C]
  DIALOG SHOW
  list add,TABLE1,stuff@tab()stuff@tab()stuff
  list add,TABLE1,more@tab()more@tab()more
  list add,TABLE1,stuff@tab()stuff@tab()stuff
:Evloop
  wait event
  goto @event()
:Close
  exit
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: Fri Oct 21, 2005 2:04 am    Post subject: Reply with quote

i have found in the past that i cannot centre the very first column ... one way around that has been to make the first column 0 pixels wide and use the 2nd column as my first one and so on...

serge

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


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Fri Oct 21, 2005 2:20 am    Post subject: Reply with quote

Serge wrote:
i have found in the past that i cannot centre the very first column ... one way around that has been to make the first column 0 pixels wide and use the 2nd column as my first one and so on...

serge


Hi Serge and everyone,

In case you didn't know... The VDS Table is a Windows List View control.
As you noticed Serge, the very first column cannot be changed from its
default left alignment. I do believe that this is also language specific. Smile

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help 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