Faking A Real Table Object
Mark Schonewille
m.schonewille at economy-x-talk.com
Mon Oct 22 11:17:06 EDT 2007
Hi Len,
What about not dynamically increasing the number of fields in the
group, but displaying different parts of the data instead?
Create a group with fields in rows and columns. Add a vertical and a
horizontal scrollbar object. Now group the fields and the scrollbars.
Write a script that shows line x to y of your data, depending on the
thumbPos of the vertical scrollbar. The script should also show item
a to b of each line x to y of your data, depending on the thumbPos of
the horizontal scrollbar.
You can do this using the scrollbarDrag message, which is sent if you
drag the thumb of the scrollbar. The scrollbarDrag message comes with
a parameter, which you can use together with the endValue of the two
scrollbar objects to determine which lines and which items you need
to display.
Best regards,
Mark Schonewille
--
Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Quickly extract data from your HyperCard stacks with DIFfersifier.
http://differsifier.economy-x-talk.com
Op 22-okt-2007, om 16:57 heeft Len Morgan het volgende geschreven:
> I'm trying to create a group that will act like a "real" table
> object should. In other words, I want to be able to align each
> column individually.
>
> I've created 5 fields each the width needed for a column and then
> grouped them together. Since the columns (as originally drawn) we
> longer than the group, I get a scrollbar for the group but it only
> scrolls to the height of the fields. Since the number of lines in
> the fields can vary from 2 to 200, I don't want to put 2 lines of
> data and 198 CRs in each field.
>
> I know someone has done this before where they attach a scroll bar
> to the right most column and then somehow get the other columns to
> move when it's scrollbar is moved.
>
> Is there a better way to accomplish what I'm trying to do? If the
> group w/ scrollbar is the way to go, how can I dynamically expand
> the length of the columns (as the number of records varies) without
> moving the top of the field around on the card?
>
> Thanks for any help, pointers, etc you can toss my way.
>
> Len Morgan
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list