Thread View: borland.public.delphi.opentoolsapi
2 messages
2 total messages
Started by Atmapuri
Thu, 12 Jun 2008 11:33
Tabs and columns position!
Author: Atmapuri
Date: Thu, 12 Jun 2008 11:33
Date: Thu, 12 Jun 2008 11:33
14 lines
1370 bytes
1370 bytes
Hi! I am using IOTAEditPosition to obtain a line from the IDE, but EditPosition.Read returns a string with tab charachters. EditPosition.Column however knows the width of those tabs and returns the charachter count based position, where each tab accounts for several spaces. How can I get a string where the tabs have been replaced with correct number of spaces to have the right column position? Thanks! Atmapuri
Re: Tabs and columns position!
Author: Atmapuri
Date: Thu, 12 Jun 2008 12:49
Date: Thu, 12 Jun 2008 12:49
24 lines
1759 bytes
1759 bytes
Hi! Found one solution. I call MoveRelative(0,1) and append EditPosition.Charachter to a string until EOL is reached. Thanks! Atmapuri "Atmapuri" <janez.makovsek@usa.net> wrote in message news:48510979$1@newsgroups.borland.com... > Hi! > > I am using IOTAEditPosition to obtain a line > from the IDE, but EditPosition.Read returns a string > with tab charachters. EditPosition.Column however > knows the width of those tabs and returns the charachter > count based position, where each tab accounts for several > spaces. > How can I get a string where the tabs have been replaced with > correct number of spaces to have the right column position? > > Thanks! > Atmapuri >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads