Datagrid Issues with Scrollbar :(

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
makeshyft
Posts: 222
Joined: Mon Apr 15, 2013 4:41 am
Contact:

Datagrid Issues with Scrollbar :(

Post by makeshyft » Fri Jul 05, 2013 5:41 pm

Hi everyone,

I am creating a datagrid, which I have successfully done before ..... and I am having problems with the scrollbar. It isn't activating / updating on FILLINDATA.

I have made a datagrid before.... compared the code of both ....1 works the other doesn't. But the code doesn't seem like its doing anything much different. Filling in text of fields and thats it.

The one that works is actually more complex.

What are the reasons why datagrid scrollbar wouldn't update?

Thanks,

Tom
Founder & Developer @ MakeShyft R.D.A - https://www.makeshyft.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com

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

Re: Datagrid Issues with Scrollbar :(

Post by Simon » Fri Jul 05, 2013 7:07 pm

Hi Tom,
This is a good one I think... :)
It might not be the scripting that is a problem but the settings. Before I go on and blab about the differences:

Did you set "auto" for hScrollbar and vScrollbar in the DG Inspector?

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

makeshyft
Posts: 222
Joined: Mon Apr 15, 2013 4:41 am
Contact:

Re: Datagrid Issues with Scrollbar :(

Post by makeshyft » Fri Jul 05, 2013 7:34 pm

The one that works is set to true and the one that doesn't .... doesn't show the bar at all if its set to auto.
the script on FILLINDATA is literally 1 line at this point.

Could it be a wait issue? maybe it doesn't have time to update. where would I put the wait command?

I clear it by setting dgdata to empty
and refresh it by assigning an array to dgdata.



Cheers
Founder & Developer @ MakeShyft R.D.A - https://www.makeshyft.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com

Post Reply