Data Grid Scroll issue

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
tasdvl9
Posts: 94
Joined: Fri Dec 06, 2013 3:55 am

Data Grid Scroll issue

Post by tasdvl9 » Tue Feb 25, 2014 10:30 pm

Hi,

I'm trying to implement a vertical and horizontal scroller for my Data Grid.

I'm a little fuzzy on how to link the scroll objects to my data grid object.

I did something like this after I added the Vertical and Horizontal scroll bars:

on scrollbarDrag V
set the dgVscroll of control "dgViewWindow" to V
end scrollbarDrag

Although the scroll bar moves, my data grid is not being scrolled vertically or horizontally.

Thanks!

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Data Grid Scroll issue

Post by Simon » Wed Feb 26, 2014 1:02 am

Hi tasdvl9,
I'm not sure what "control "dgViewWindow"" is?

Now there will probably be some flack for saying this but you should be using the actual object type not the general "control". By using "control" I can't tell if it's a button or image or other, so can't really help debug this.

See, "set the dgVScroll of grp "DataGrid 1" to pVScroll" works great with no problems for me.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply