wxStyledText questions...

Greg Skelhorn gskelhorn at eastlink.ca
Fri Dec 1 16:37:49 PST 2006


Hi,

I am trying to use the wxStyledTextCtrl to create styled view
of files from our data collectors. The format is rather verbose
but primarily numeric (see below for example).

 From what I have found via google searches I believe I want
to set the stc lexer to SCLEX_CONTAINER and write the
logic for my custom syntax styling in an event handler for

SCN_STYLENEEDED.

Am I on the right path? Can anyone point me to
some docs or a similar example?

Greg Skelhorn
email: gskelhorn on domain eastlink dot ca


e.g.:

BK,OP115,BP2,BS114.2251,BC0.0000
--Backsight HR:0.0 (0.0 + 0.0 Offset), Prism Const.:0.0mm
--BS check 115 - 2:ZE84.4250,SD119.31,HD err= -0.003555, VD err= -0.040714
--BS Circle check : angular err= 0.0000
--Check Point: 2
--delta= N:0.005556 E:-0.012259 Z:-0.042211
--raw= HR:5.93 HA:0.0000 SD:119.3 ZA:84.4251
--Foresight Target:My Prism, HR:4.93 (4.93 + 0.0 Offset), Prism 
Const.:0.0mm
--HR:4.93 (4.93 + 0.0 Offset)
LS,HI5.0,HR4.93
SS,OP115,FP125,AR335.0640,ZE88.4354,SD64.32,--SM/NONUMBER
OB,OP115,FP125,AR335.0640,ZE88.4354,SD64.335,--SM/NONUMBER
SS,OP115,FP126,AR126.0651,ZE89.5410,SD35.305,--SM/379
OB,OP115,FP126,AR126.0651,ZE89.5408,SD35.32,--SM/379
SS,OP115,FP127,AR300.4322,ZE90.5540,SD96.215,--SM/ALD




More information about the wxpython-users mailing list