| View previous topic :: View next topic |
| Author |
Message |
sawang Newbie
Joined: 06 Mar 2005 Posts: 8
|
Posted: Thu Oct 20, 2005 1:53 pm Post subject: Table Element, Howto align centre items? |
|
|
| How do i centre all the items in a table element? API? Undoumented?Pls Help |
|
| Back to top |
|
 |
WidgetCoder Contributor


Joined: 28 May 2002 Posts: 126 Location: CO, USA
|
Posted: Thu Oct 20, 2005 2:58 pm Post subject: |
|
|
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 |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Fri Oct 21, 2005 2:04 am Post subject: |
|
|
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 |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Fri Oct 21, 2005 2:20 am Post subject: |
|
|
| 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.  _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| 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
|
|