>Sorry I dont find now the code that demonstrate that it was easier if
> "sba_none" was placed at end. 

OK, I found it.

This was a original code (see scrollbarclicked new added constant):

type
 scrollbarareaty = (sbbu_down,sbbu_move,sbbu_up,sba_start,sba_end);

const
 scrollbarclicked = ord(sba_end) + 1; // not a "good boy" code.

I did change code adding 2 new items in scrollbarareaty (scrollbarclicked
=sba_clicked) and sba_none: 
And remove const scrollbarclicked (that becomes sba_clicked in the enum
array).

---> scrollbarareaty =
(sbbu_down,sbbu_move,sbbu_up,sba_start,sba_end,sba_clicked,sba_none);

// sba_none was placed at end because, later in code:

---> for ar1:= low(scrollbarareaty) to high(scrollbarareaty) do begin

// was changed with (due to 2 last added items):

---> for ar1:= low(scrollbarareaty) to sba_end do begin

Of course you could add sba_none in first position and do:

---> for ar1:= sbbu_down to sba_end do begin

So, I wait for the vote for the code you want.

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/


_______________________________________________
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to