DataGrid Column Behavior removes Center Content Alignment

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
LC4iOS
Posts: 88
Joined: Tue Dec 03, 2013 8:15 pm

DataGrid Column Behavior removes Center Content Alignment

Post by LC4iOS » Thu Jan 09, 2014 7:35 am

Working on and playing with a simple data grid project.

Its a dg Table trying to display the current month calendar with current day bold red and weekends highlighted.


I've added the data grid.
And have added some data.
1,2,3,4, etc for the month calendar.

As soon as I add Column Behavior to the Sat column
the Center Content Alignment no longer works.

Haven't seen anything that addresses this issue as yet.
Last edited by LC4iOS on Sat Jan 11, 2014 1:59 am, edited 1 time in total.
Thanks to RunRev.
Thanks to LiveCode forum members.

LiveCode v5.5.5 - iOS Android Mac Windows - 6.5 Community
27" 2012 iMac i5, MacBook Pro, MacBook Air, iPhone 5, iPhone 4
xCode 5.0.2 - iOS7 - OS X Mavericks
Paid Apple iOS Developer Program Member

LC4iOS
Posts: 88
Joined: Tue Dec 03, 2013 8:15 pm

Re: DataGrid Column Behavior removes Center Content Alignmen

Post by LC4iOS » Fri Jan 10, 2014 12:22 am

Anyone?

I've searched n searched.
Tried to contact slug but contact web page no longer working.
Thanks to RunRev.
Thanks to LiveCode forum members.

LiveCode v5.5.5 - iOS Android Mac Windows - 6.5 Community
27" 2012 iMac i5, MacBook Pro, MacBook Air, iPhone 5, iPhone 4
xCode 5.0.2 - iOS7 - OS X Mavericks
Paid Apple iOS Developer Program Member

LC4iOS
Posts: 88
Joined: Tue Dec 03, 2013 8:15 pm

Re: DataGrid Column Behavior removes Center Content Alignmen

Post by LC4iOS » Fri Jan 10, 2014 12:35 am

Using dgHelper:
Double click the dg and the DataGrid Helper will appear
Expand Columns | Click Columns Builder | Edit ...
Click the Header for Sat or Sun
Click Column Content
Click on control in the inside of the top left corner of red lines
On the properties toolbar Select Text Formatting
Click the Align Center button
Back in the Column Builder click Update then Apply
Close the Column Builder
And see the data in the dg centered
save the LiceCode project
Last edited by LC4iOS on Sat Jan 11, 2014 2:01 am, edited 1 time in total.
Thanks to RunRev.
Thanks to LiveCode forum members.

LiveCode v5.5.5 - iOS Android Mac Windows - 6.5 Community
27" 2012 iMac i5, MacBook Pro, MacBook Air, iPhone 5, iPhone 4
xCode 5.0.2 - iOS7 - OS X Mavericks
Paid Apple iOS Developer Program Member

LC4iOS
Posts: 88
Joined: Tue Dec 03, 2013 8:15 pm

Re: DataGrid Column Behavior removes Center Content Alignmen

Post by LC4iOS » Sat Jan 11, 2014 1:57 am

Just sharing sample app:
Attachments
stkDatGridCalendar_20140111 1155.livecode.zip
(7.7 KiB) Downloaded 164 times
Thanks to RunRev.
Thanks to LiveCode forum members.

LiveCode v5.5.5 - iOS Android Mac Windows - 6.5 Community
27" 2012 iMac i5, MacBook Pro, MacBook Air, iPhone 5, iPhone 4
xCode 5.0.2 - iOS7 - OS X Mavericks
Paid Apple iOS Developer Program Member

Post Reply