THTable

Here is where the magnanimous folks that create externals post them (.zip archives only please).

THTable

Postby sctell » Fri Dec 30, 2011 7:35 am

Hi,

This external is the result of some nifty help provided by Mark.

It is a table solution based upon SC card fields arranged so that each field is a table cell.

So, for example 6 fields wide x 20 fields high = a 120 field matrix.

Following Mark's help the external provides fast scrolling of data.

There is an example project and a ReadMe file which explains how it works.

I think, for the occasional table user, it is far simpler to get your head around than ListMaster.

Please try it and let me know through the forum of any issues or suggestions for improvement.

Finally, I must thank Mark, as without his help, accessing the Waste Edit routines would have been impossible for me.

All the best

Terry

THTableExample.zip
(76.7 KiB) Downloaded 246 times
Last edited by sctell on Thu Jan 19, 2012 10:23 am, edited 2 times in total.
sctell
 
Posts: 1128
Joined: Sun Jul 06, 2008 10:41 am

Re: THTable

Postby vinnie-bob » Fri Dec 30, 2011 10:41 am

wow, Terry, that looks awesome. I will play with this more later.

Great work! Thanks to you and Mark, and a Happy New Year!

cheers,
------
vince
------
User avatar
vinnie-bob
 
Posts: 219
Joined: Sun Jul 06, 2008 10:55 am
Location: Des Moines, Iowa, USA

Re: THTable

Postby sctell » Thu Jan 19, 2012 7:43 am

Hi All,

This is an update of the external THTable.

It has the following additional functions.

put THTable("clearCells",gMyTable) into tInfo
put THTable ("selectedRecordData",gMyTable) into tData
put THTable ("recordData",gMyTable) into tData
put THTable ("recordDataByIndex",gMyTable,tIndex) into tData
put THTable ("recordCount",gMyTable) into tInfo
put THTable ("removeRecordAtIndex",gMyTable,tIndex) into tInfo
put THTable ("insertRecordAtIndex",gMyTable,tData,tIndex) into tInfo

For details of each function please look at the ReadMe and the scripts of the example project.

The example demonstrates some of the functions but not all.

In addition the example project has been modified following a suggestion by Mark to place an invisible bg grc behind the table that allows mouseClicks through to the selection scripts that now reside in the cd script rather than each cell script.

The download can be found at the top of this thread.


All the best

Terry
sctell
 
Posts: 1128
Joined: Sun Jul 06, 2008 10:41 am

Re: THTable

Postby sctell » Sun Jun 24, 2012 10:58 pm

Hi,

I must inform you of a memory leak that affects SC when using Rectangle or Polygon Buttons with ICNS icons.

I informed Mark a while back of growing memory when using this external with a large amount of data.

The upshot seems to be that memory continues to grow when using a Rectangle Button or Polygon Button with ICNS icons.

It seems there is an issue with PlotIconRef in Carbon.

It was only the use of a large amount of data in ever changing cd flds (cells of the table) that identified this issue.

It only seems to affect Rectangle and Polygon Buttons and not
Checkbox, Round Rect, Bevel, Radio buttons.

Mark suggested the memory leak in the Buttons will probably not be noticeable in projects that don't change field data much but with a table where the data changes a lot with the use of a scroller it is clearly visible.

In one example my memory footprint went from 35mb to 100mb.

Whether Apple will resolve this leak or Mark can come up with a solution I don't know.

As a result of the above I cannot at the moment recommend the use of this external with Rectangle and Polygon Buttons .

It does seem OK with all the other user controls.

All the best

Terry
sctell
 
Posts: 1128
Joined: Sun Jul 06, 2008 10:41 am


Return to XCmds, XFcns, and XRtns

Who is online

Users browsing this forum: No registered users and 1 guest

cron