Menu

#441 Enhance ooDialog ApplicationManager to set one-based indexes

None
open
nobody
ooDialog (102)
5
2012-08-22
2011-09-15
No

In Rexx people expect one-based indexes. In the Windows API for dialogs and dialog controls, zero-based indexes are used.

In the development of ooDialog, some dialog controls were added that convert the underlying zero-base indexes to one-based indexes. Unfortunately, some dialog controls were added that retain the zero-based indexes. This is of course worse than if zero-based indexes were used everywhere because it is hard to remember which control uses which type of index.

Changing controls like the list-view to use one-based indexes would naturally break existing programs. However, adding a setting to the application manager to always use one-based indexes, with the default being off, would allow new programs to be written consistently using one-based indexes without breaking existing programs.

Discussion

Anonymous
Anonymous

Add attachments
Cancel