Page 1 of 1
Scrolling a datagrid - Form
Posted: Mon Jul 02, 2018 5:29 pm
by mvillion
Hi
I guess I am lazy because LC handles so many things up to now.
I have created a data grid form and the vertifcal scroll bar is visible but moving it up an down only slides the bar - the data in the grid does not slide with it.
I have looked through the tutorials and there was nothing I could see about this. The forum did have one entry with a large amount of code but that was from 2014. So I wondered whether things have moved on, or do I have a stack of code to write.
Thanks
Matt
Re: Scrolling a datagrid - Form
Posted: Mon Jul 02, 2018 7:14 pm
by richmond62
Well, to be honest, I've never worked with Data Grids . . .
But, just now I set up a very simple one containing a simple list and I had absolutely no problem whatsoever with vertical scrolling.
LiveCode 8.1.10, Macintosh MacOS 10.7.5
-
-
Re: Scrolling a datagrid - Form
Posted: Mon Jul 02, 2018 8:12 pm
by mvillion
Hi Yes. A data grid is easy to work with as a list.
If you switch it to 'Form' mode and things change.
Re: Scrolling a datagrid - Form
Posted: Tue Jul 03, 2018 8:16 am
by richmond62
Aye, well, the hale thing's awa wi the faeries as far as I can tell.
When I changed my "Gridlock" from a table to a form all my data became invisible
(although I could see it in the props palette),
and when I changed it back to a table the data did NOT reappear
(although I could see it in the props palette),
which is Utter Rubbish!
LiveCode 8.1.10, Xubuntu Linux 18.04
Re: Scrolling a datagrid - Form
Posted: Tue Jul 03, 2018 7:55 pm
by jacque
and when I changed it back to a table the data did NOT reappear
(although I could see it in the props palette),
which is Utter Rubbish!
I think if you work with datagrids more you'll understand why this happens. Forms and table datagrids are very different animals. I wouldn't expect them to share content.
Re: Scrolling a datagrid - Form
Posted: Thu Jul 05, 2018 5:14 pm
by mvillion
Hi all
An update.
I shut the computer down. Restarted everything and it is working now.
No idea.
I needed to take a Dogbert approach.
Re: Scrolling a datagrid - Form
Posted: Thu Jul 05, 2018 5:54 pm
by richmond62
I think if you work with datagrids more you'll understand why this happens. Forms and table datagrids are very different animals.
Might it not be a good thing then to have 2 icons on the tools.rev palette:
1. for a datagrid table, and
2. for a datagrid form,
because, if they really are quite different BEASTS . . . the current situation does
. . . err . . . give the impression they are varaints of the same thing and both "benign vegetarians".
Re: Scrolling a datagrid - Form
Posted: Thu Jul 05, 2018 5:59 pm
by richmond62
OR . . . putting things another way . . .
when I change my datagrid over from table to form how do
I get the data I entered while the thing was in table form
to reappear in the form format?
Re: Scrolling a datagrid - Form
Posted: Thu Jul 05, 2018 7:04 pm
by Klaus
richmond62 wrote: ↑Thu Jul 05, 2018 5:59 pm
when I change my
datagrid over from table to form how do
I get the data I entered while the thing was in table form
to reappear in the form format?
Voodoo and/or prayer and lots of luck.
Seriously, you can't.
Re: Scrolling a datagrid - Form
Posted: Thu Jul 05, 2018 8:33 pm
by jacque
You will need to do some scripting and adjust the default handlers in the datagrid form. The list datagrid is fairly simple and self-contained, the form datagrid must be fully managed by script and the template has to be manualliy constructed. Look at some of the online lessons.
Re: Scrolling a datagrid - Form
Posted: Sun Sep 06, 2020 3:11 pm
by Simon Knight
Bump!
Thank you dogbert! Just spent a wee while wondering why the scroll bar did very little. Quit and restart and all is well.
TVM
Skids