Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #410

Re: Toolbox differences

From Martin <News03@avisoft.f9.co.uk>
Subject Re: Toolbox differences
Newsgroups comp.sys.acorn.programmer
Date 2011-06-10 10:32 +0100
Message-ID <51e116c09fNews03@avisoft.f9.co.uk> (permalink)
References <e7ab116d-b6ed-4f79-b3aa-97d0a60da1fb@i4g2000yqg.googlegroups.com>
Organization None

Show all headers | View raw


On 09 Jun, in article
<e7ab116d-b6ed-4f79-b3aa-97d0a60da1fb@i4g2000yqg.googlegroups.com>,
   Mister Ron <mrronman@googlemail.com> wrote:
> I'm using a Toolbox scrolllist in an app.
> Iyonix 5.16 : TextGadgets 0.30 (14 Jun 2008)
> RiscPc 4.33 : TextGadgets 0.49 (06 Jul 2003)

> The Iyonix will select 1 item at a time, mutiple items can be selected
> by adjust. This is fine.

> On the RiscPc every item selected stays selected (unless it is
> deselected)
> I've upgraded the RiscPc Textgadget from something like 0.13 but the
> problem still persists.
> I tried deselecting the previous selected item first but then i am
> unable to select mutiple items.

> Any suggestions please

Yes. Prepare for lots of anguish. The state of the Toolbox nearly caused
me to give up development and even RISC OS when I was developing an app
of mine in 2008.  At the time I wrote...

<quote>
Rover makes extensive use of a Toolbox ScrollList, which is provided by 
the TextGadgets module. I have tested Rover with the following versions,
and unfortunately they give different results!

v0.29	As supplied with RISC OS 5.13 in Iyonix ROM.
	     Does not handle columns, so lists looks very untidy.
	     Also vertical spacing becomes odd with some icons.
v0.49	Latest publically available 26/32 bit version from ROL at Jul 2007.
	     20 times slower if ScrollList_AddItem flag is 0 not 1.
	     Aborts if ScrollList_AddItem flag is 1 without Sprites
	     Works if flag 1, but sometimes the icon spacing is too small.
v0.85	As supplied with RISC OS 4.39 (in Adjust ROM)
	     Works well with ScrollList_AddItem flag of 0.
	     Should have columns correctly spaced.
	     Will have Vertical scroll bar if required. 
v0.95	As supplied with RISC OS 6.06.
	     Made to work like v0.85, but some oddities programmed round:
	     ScrollList_DeselectItem raises Select event even if flag 0. 
	     This caused a very nasty loop!

If anyone has other versions of TextGadgets that do not work well, please 
let me know.

My conclusion is that improvement will not be practical until a common,
updated version of TextGadgets is publically available for all machines. 
We can but hope.
</quote>

That is three years ago, but no substantial improvement has been made
since, AFAIK. If there was any sign of co-operation between ROL and ROOL
I would hope that at least a common set of Toolbox modules could be
developed. Until then, it will be a development nightmare, I am afraid.

Regarding your selection problem, I can vaguely remember I had similar
trouble getting it to behave correctly ie Select is one, Adjust adds to
selection. I *think* if it was the Select key, I deselected everything
then selected the single item, regardless of TextGadgets version. This
worked on all combinations I could try!

Good luck!
 
Martin

-- 
Martin Avison 
Note that unfortunately this email address will become invalid
without notice if (when) any spam is received. 

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Toolbox differences Mister Ron <mrronman@googlemail.com> - 2011-06-09 15:21 -0700
  Re: Toolbox differences Martin <News03@avisoft.f9.co.uk> - 2011-06-10 10:32 +0100
    Re: Toolbox differences Mister Ron <mrronman@googlemail.com> - 2011-06-10 10:14 -0700
    Re: Toolbox differences chrisbazley@bigfoot.com - 2011-06-12 04:45 -0700
      Re: Toolbox differences Martin <News03@avisoft.f9.co.uk> - 2011-06-12 16:59 +0100
      Re: Toolbox differences wpb <willblatchley@yahoo.com> - 2011-06-12 11:37 -0700
  Re: Toolbox differences Rik Griffin <rik.griffin@btinternet.com> - 2011-06-10 11:08 +0100
    Re: Toolbox differences Mister Ron <mrronman@googlemail.com> - 2011-06-10 10:17 -0700

csiph-web