Page 1 of 1

how to fixed tab position

Posted: Fri May 22, 2020 1:50 pm
by zbozkurt
Hi;

I want to make an editor which has got, editor's user can set only one tab position eg 100 px whole active document.
I make a list of tab positon for selection for example (100 px, 50 px, 150 px).
If user change selection all of document tab position was changing?

Can you give me an idea ?

Re: how to fixed tab position

Posted: Sat May 23, 2020 4:01 pm
by Sergey Tkachenko
Sorry, I do not understand.

ParaStyle.Tabs collection is sorted automatically, so it will be (50 px, 100 px, 150 px).
If DefTabWidth = 48, the paragraph will have tab positions at 50, 100, 150, 192 (=48*4), 240 (=48*5), 288 (=48*6) pixels, and so on, limited only by the document width.

Tabs in this paragraph are aligned to the closest of these tab positions.
For example, if the user inserts tab at the position 88, it will be aligned to the tab position 100, and will be displayed from 88 to 100 pixels.
If the user inserts tab at the position 155, it will be aligned to the tab position 192, and will be displayed from 155 to 192 pixels.
(I assume that tabs are left-aligned)

Re: how to fixed tab position

Posted: Sun May 24, 2020 12:33 pm
by zbozkurt
Sory for my bad English :(

I want to make tab's position list. The list will only Default position of selectable tabs. eg 48 px, 72 px 120 px
All of tabs position are limited only one position.
if user selection is 48px , for left align paragraph a line tab's possible position is multiple * 48px, 48 - 96- 144 - 192 ...

I want to disable setting tabs' position different set. If user set 48px for document, user doesn't change to 72px in a paragraph at the document.