Robert wrote:For horizontal lines Helmut might be referring to module CtlsFigures on the CPC site.
There is a lot of work in this change, and I have not read it all carefully. But I shall make a some initial observations below:
1 - What is the logic? Is it "If a field contains 1 or more decimal characters, use the last as the alignment point, otherwise use the right edge of the field as the alignment point"?
The code seems to give special significance to the '.' character, but maybe I am looking at an obsolete diff.
2 - (Not a BlackBox issue!). The Tab units were in inches when I am used to cm. Because of the new BlackBox false virus problem I have recently changed from Windows 7 to 10, and it was quite a search to find how to set the units to metric.
3 - On the Tabulator Settings form I think it would be helpful to have a button that opened the Docu file. I think this would be helpful on very many forms. I am not suggesting that we methodically add such buttons everywhere, but when we add or change forms we could adopt a habbit of adding Docu buttons.
4 - If you change the nature of a Tab (eg left to center) while the Settings form is open, the form does not update immediately to reflect this change.
5 - Do we want the "Apply" button. Is it not simpler to make all changes immediately auto-apply?
6 - Personally I am used to, and now prefer, the old BlackBox tab look rather than the Word look. I don't feel very strongly about this; what do other people prefer?
7 - I definitely don't like the way non-numeric fields are right justified. I think of decimal alignment as a variant of center alignment, and would like non-numeric fields to be center justified. This would preserve backward compatibility for my old documents, and cause no problems for new users of this new ruler feature.
Despite these comments I think Josef has done a great job here (again).
@1: the rightmost radix char defines the alignment position. By default it is the "." but it can be changed by setting another TextRulers.defaultRadixChar.
When stored, the defaults are no longer used. The default is only used when a new tab is inserted.
Alignment is right-adjusted if there is no radix char at all.
This strategy is in line with what I have seen from other text processors, in particular with Open Office.
@2: this is a Windows setup issue. Dialog.metricSystem uses the user#s preferences via the Windows registry.
In principle it would also be possible to use the default radix char from the registry but this requires some more changes,
in Dialog and HostDialog, I guess, but it would be possible, I think.
@3: I agree in principle that forms should have a Help button. The docu is not yet updated.
If there is a Help button, should it link to a separate docu file (per form) or should it link into a
target of a more general docu text? Probably, it would be better to have a separate docu file per form.
@4: this is not easily possible, at least I don't know how to implement this synchronization.
OpenOffice uses a modal dialog for that purpose and this would solve the problem but there are no modal dialogs in BlackBox, are they?
@5: this leads to troubles and is not the way typical forms in BB work.
If you edit the tab position, for example, you may need to edit two digits and applying after editing the first digit would already
change the tab position. It also doesn't save any work because you (normally) close the Tab dialog after editing. By pressing ENTER
the changes are applied and the form is closed in one step.
@6: The triangle look was inspired by MacWrite, a text processor bundled with the first MacOs, I think.
In the meantime this is no longer in widespread use. Its development has ended around 1995.
The look applied in Word and OpenOffice is much more commonly known now and that is why it has been adapted.
Actually, I thought quite some time before adding the new look.
If you think of BB as a platform for real-world application development ( I am using it for that),
it should also be easy for a secretary to use the text processor and that is easier when at least some symbols are familiar.
@7: All text processors that I have looked at treat decimal tabs as a form of right alignment, not centered.
If you have a column of numbers isn't it quite natural to align it as
- Josef