Restored from previous forum. Originally posted by Eddy.
My 2nd contribution

usefull for IDE development
Code: Select all
;**********************************************
SIZE_TAB = 100 *15 ; 100px = 1500 twip
pf.PARAFORMAT
pf\cbSize = SizeOf(PARAFORMAT)
pf\dwMask = #PFM_TABSTOPS
pf\cTabCount = #MAX_TAB_STOPS
For i = 0 To pf\cTabCount-1 ; Set tab stops every SIZE_TAB
pf\rgxTabs[i] = (i+1) * SIZE_TAB
Next
SendMessage_(*MyGadget,#EM_SETPARAFORMAT,#MAX_TAB_STOPS,@pf)
;**********************************************
;To specify TAB_SIZE With spaces width..:)
;**********************************************
StartDrawing(WindowOutput(0))
DrawingFont(FontID(0))
SIZE_TAB = TextWidth(Space(EditorTabSize)) *15
StopDrawing()
-> sig removed