On Thu, Jan 29, 2009 at 3:09 PM, Travis Siegel <tsie...@softcon.com> wrote:
> And here is the difference between programmers and users.
> Yes, most programmer interfaces start at 0, but when a user opens your
> sreadsheet, they expect to see their first cell number as a1, not a0.
> I personally always make my code 1-based, because I am not a computer, and
> nobody I know starts counting at 0, and their program interfaces should
> reflect that.

I fully agree. So to add to my previous reply.  Internally (for the
developers), use 0-based counting. But when things are displayed
visually to the _user_ i would definitely display the first row as 1.

That means all internal RTL container classes including your component
uses 0-based counting. Only the painting gets done as 1-based
counting.

Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to