the text, only it doesn't work. I've tried some constants from the structure vieweer, but no luck.
Anyone knows if it can be done this way at alll, and if so which events to set up and trap?
Code: Select all
;set up the editorgadget to send #EN_CHANGE notifications to get the row/col position:
evMask = sendMessage_(gadgetID(#EDIT1), #EM_GETEVENTMASK, 0, 0)
sendMessage_(gadgetID(#EDIT1), #EM_SETEVENTMASK, 0, evMask | #ENM_CHANGE)
Code: Select all
select eventGadget()
case #EDIT1
Select EventType()
Case #PB_EventType_Change
GetCaretPos_(@pos.POINT)
col = sendMessage_(gadgetId(#EDIT1), #EM_CHARFROMPOS, 0, @pos)
row = sendMessage_(gadgetId(#EDIT1), #EM_LINEFROMCHAR, col, 0) + 1
StatusBarText(#STAT1, 0, "LINE:" + str(row)+" COL: " + str(col))
SetFocus_(gadgetId(#EDIT1))
EndSelect