scrolling header field

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Glenn Boyce
Posts: 137
Joined: Thu Jul 24, 2008 11:22 pm

scrolling header field

Post by Glenn Boyce » Thu Oct 30, 2008 4:23 am

I have a header field that is a different colour than the main table field. The latter has now got more columns than I have width and needs to scroll. How do I link the header field to scroll at the same time?

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Thu Oct 30, 2008 7:12 am

Hi Glenn,

You can make two fields scroll at the same time by tapping into the 'scrollbarDrag' message from your table field.

Code: Select all

on scrollbarDrag
  set the hScroll of field "Header" to the hScroll of me
end scrollbarDrag
HTH,

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

Post Reply