Talking about Tab (read my previous post), here’s another, but in TextArea.
As far as I can see, there is a phantom tab rule in TextArea who have different values depending on the platform.
(I do not care about the real differences of TextArea depending on the platforms; I am talking about the way the user will see it).
Cocoa and Carbon can display up to 12 \tabs in a 670 pixels width TextArea.
Starting with the 13th \tab things differs: on Carbon, the cursor is at the end of the line while in Cocoa, the cursor is nearly at the middle of the TextArea width.
In Carbon, a 13th \tab will move the Cursor for some pixels to the right (2, 3 ?)
In Cocoa, remember, the cursor is in the middle of the line (around 330 pixels on the 670 pixels the TextArea width is), a 13th \tab wrap the line and display the cursor at \tab position 1 of the next line (do it to understand)
Because we do not have control to the rule (this for example: margl767\margr767\margb767\margt767 *), we cannot efficiently use tabs with native code on Xojo. **
Cocoa Screen Shot
Carbon Screen Shot
There is the same number of tabs in the two screen shots above (12 ?), but the text appears at a different horizontal location.
I do not wasted my time with a Windows screen shot because it is basically the same as the Carbon screen shot.
- Taken from a rtfd document created by me / Apples TextEdit.
** I tried to store the rtfdata into the clipboard / pasted it as text into a text document (Apples TextEdit) anddo not get the ‘phantom rule’.
I tried to change the TextArea Super to TextField: no more vertical scroll bar: the text disappear on the right part of the screen (now rap-around).
I tried to change the TextArea into Styles Off and many other properties changes to nothing better.
I am now waiting for a change from the Xojo team (I will not hold my breath).
Thank you for listening. Of course, I welcome a solution.