how to fixed tab position

General TRichView support forum. Please post your questions here
Post Reply
zbozkurt
Posts: 8
Joined: Sun May 17, 2020 2:59 pm

how to fixed tab position

Post 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 ?

Sergey Tkachenko
Site Admin
Posts: 15138
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: how to fixed tab position

Post 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)

zbozkurt
Posts: 8
Joined: Sun May 17, 2020 2:59 pm

Re: how to fixed tab position

Post 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.

Post Reply