The MASM Forum Archive 2004 to 2012

Specialised Projects => Custom Interface Components => Topic started by: msmith on April 04, 2006, 03:47:15 AM

Title: RAEdit REM_SETHILITELINE
Post by: msmith on April 04, 2006, 03:47:15 AM
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.
Title: Re: RAEdit REM_SETHILITELINE
Post by: KetilO on April 04, 2006, 10:18:48 AM
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
Title: Re: RAEdit REM_SETHILITELINE
Post by: msmith on April 04, 2006, 06:13:06 PM
Thanks Ketil