News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

RAEdit REM_SETHILITELINE

Started by msmith, April 04, 2006, 03:47:15 AM

Previous topic - Next topic

msmith

REM_SETHILITELINE works fine but the color arg does not seem to be RGB. 080h gives pink and 0ffh gives mint green.

My main problem is that I cannot find a way to un-hliteite the line.

KetilO

Hi msmith

With REM_SETHILITELINE you can choose one of three colors (lParam=1, 2 or 3) or turn it off (lParam=0).
To choose the actual RGB values use REM_SETCOLOR with an RACOLOR structure as lParam.


RACOLOR struct
bckcol dd ? ;Back color
txtcol dd ? ;Text color
selbckcol dd ? ;Sel back color
seltxtcol dd ? ;Sel text color
cmntcol dd ? ;Comment color
strcol dd ? ;String color
oprcol dd ? ;Operator color
hicol1 dd ? ;Line hilite 1
hicol2 dd ? ;Line hilite 2
hicol3 dd ? ;Line hilite 3
selbarbck dd ? ;Selection bar
selbarpen dd ? ;Selection bar pen
lnrcol dd ? ;Line numbers color
numcol dd ? ;Numbers & hex color
RACOLOR ends


KetilO

msmith