Toolbox: Scrolling List?
Chris Mahoney (1684) 2165 posts |
Hi, me again :) ResEd offers a gadget called “scrolling list” which (presumably) does exactly what it says on the tin. However, I can’t find any documentation on how to use it! The Toolbox manual only mentions it in passing, and there don’t seem to be any veneers for it in gadgets.h. Google has turned up a few hits, but none of them explain how to use it. I’ve tried treating it as a string set (since it’s essentially a non-menu version of one) but have had no luck there either. Tree View and Tool Action don’t seem to be documented in the manual either, although I’m not trying to use them (yet?). Any tips on where to start with Scrolling List? |
Chris Johnson (125) 825 posts |
There is a StrongHelp manual for ‘Text gadgets’, by Rik Griffin, which may be of some help. There is also a StrongHelp manual ‘Toolbox’ which has some information. I am not sure offhand the best source for these manuals now. There is a tree view StrongHelp manual (again Rik Griffin) available also. I have copies of all these manuals, if you cannot find a current source. |
Chris Mahoney (1684) 2165 posts |
I’d completely forgotten about StrongHelp so I’ll take a look. Thanks :) |
Steve Drain (222) 1620 posts |
I used Rik’s manual when writing Basalt, but looking back, I have a note in Basalt’s SH manual: “The information about ScrollList is rather brief!”. Items are added/deleted individually to a SL, unlike a StringSet. I think it is here the the memory leak can occur. The RO6 version of the SL is a much more elaborate affair and I have not used it. I also have: “ToolAction allows a component to be set up very flexibly, but the documentation on it is slim!”. Good luck. ;-) |
Fred Graute (114) 645 posts |
Rik Griffin’s manual is, as Steve says, rather terse and describes an early version of TextGadgets. Please note that this link’s to Rik’s old site, the link at the bottom points to his new site. The Toolbox manual describes a later ROL version so contains a number of methods not available on RO 5, eg: *ScrollList_SetHeadingText *ScrollList_GetHeadingText *ScrollList_GetFont *ScrollList_SetColumnProperties *ScrollList_DecodePosition
Yes, that’s what I found too. It seems to be worst when you delete all items and then fill the list anew. Information on the TreeView and Tabs gadgets can be found on Rik’s site |
Chris Mahoney (1684) 2165 posts |
The StrongHelp manuals are indeed pretty sparse! Still, I think I have enough to get on with. I don’t like the sound of memory leaks though so it looks like I could have “fun” with this one :) Thanks for the pointers. |
Chris Mahoney (1684) 2165 posts |
Well, it turns out that C veneers do exist after all, but they’re in ScrollList.h instead of gadgets.h. I haven’t had a chance to actually try them yet but the code looks like it’ll work. Edit: Tried scrolllist_add_item and it works fine :) |