how can I get current cursor prompt location in STC?

how can I get current cursor prompt location in STC?

for example,

···

--------------------------------------------------------------------
in StyledTextCtrl
#__cursor_location_1_begin__

<- location 1

#__cursor_location_1_end__

#__cursor_location_2_begin__

<- location 2

#__cursor_location_2_end__
--------------------------------------------------------------------

GetCurrentPos()

···

On 9/22/11 9:16 PM, Wonjun, Choi wrote:

how can I get current cursor prompt location in STC?

--
Robin Dunn
Software Craftsman

Is there a way to check whether getcurrentpos() is between begin and end

···

2011/9/24 Robin Dunn robin@alldunn.com

On 9/22/11 9:16 PM, Wonjun, Choi wrote:

how can I get current cursor prompt location in STC?

GetCurrentPos()

Robin Dunn

Software Craftsman

http://wxPython.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

Well, that depends on if you know the positions of begin and end, right? :wink:

···

On 9/23/11 8:42 PM, 최원준 wrote:

Is there a way to check whether getcurrentpos() is between begin and end

--
Robin Dunn
Software Craftsman

the positions of begin and end can be changable. and what if I search the character(#begin) line by line everytime in styletext() routine which is called by EVT_STC_STYLENEEDED event?

···

2011/9/27 Robin Dunn robin@alldunn.com

On 9/23/11 8:42 PM, 최원준 wrote:

Is there a way to check whether getcurrentpos() is between begin and end

Well, that depends on if you know the positions of begin and end, right? :wink:

Robin Dunn

Software Craftsman

http://wxPython.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en