From 92d6f2d71550528c5056f3d79719b7d97e0d1c8e Mon Sep 17 00:00:00 2001 From: AIR Date: Sat, 14 Jan 2023 02:54:13 -0500 Subject: [PATCH] Configured Modify indicator --- raedit.inc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/raedit.inc b/raedit.inc index f4c765e..1635405 100644 --- a/raedit.inc +++ b/raedit.inc @@ -49,6 +49,8 @@ SUB RaConfigEditor(hEDT as HWND) SendMessage(hEDT, REM_SETSTYLEEX, STILEEX_STRINGMODEFB, 0) + SendMessage(hEDT, REM_SETSTYLEEX, STILEEX_LINECHANGED, 0) + ' Set Colors and Keywords RaSetColors(hEDT) RaLoadKeyWords(hEDT) @@ -134,13 +136,18 @@ FUNCTION RaLoadFile(edt AS HWND) AS STRING DIM AS CHARRANGE chrg RetStr$ = GetFileName$("Open File...", "BCX Files|*.BAS;*.INC;*.bi;*.bci") IF Len(RetStr$) THEN + + EDITLOADFILE(edt, RetStr$) chrg.cpMin = 0 chrg.cpMax = 0 SendMessage(edt, EM_EXSETSEL, 0, &chrg) SendMessage(edt, EM_SCROLLCARET, 0, 0) SendMessage(edt, REM_HILITEACTIVELINE, 0, 2) + SendMessage(edt, EM_SETMODIFY, FALSE, 0) + SendMessage(edt, REM_SETCHANGEDSTATE, FALSE, 0) SetFocus(edt) + END IF FUNCTION = RetStr$ END FUNCTION