Page 1 of 1
dcgetoptions colorgets and dcmultiline
Posted: Mon May 11, 2015 8:14 am
by skiman
Hi,
I was testing with dcgetoptions colorgets and came to the conclusion that a dcmultiline doesn't use this setting as default. Any reason for this?
Re: dcgetoptions colorgets and dcmultiline
Posted: Mon May 11, 2015 8:50 am
by rdonnay
No reason. It was never requested before now.
If I change it now, it would probably have a negative affect on existing applications.
I could pass another parameter to tell it to include multilines. Would that be acceptable?
Re: dcgetoptions colorgets and dcmultiline
Posted: Mon May 11, 2015 11:49 pm
by skiman
Hi Roger,
Yes, that would be a good option. This will not break existing code, and will make it easy to add this to a complete application.
Re: dcgetoptions colorgets and dcmultiline
Posted: Tue May 12, 2015 3:17 am
by Tom
I use the PRESENTATION clause of DCMULTILINE:
Code: Select all
aML_Presentation := {{XBP_PP_FGCLR,<bnMyColor1>},{XBP_PP_BGCLR,<bnMyColor2>},;
{XBP_PP_HILITE_FGCLR,<bnMyColor3>},{XBP_PP_HILITE_BGCLR,<bnMyColor4>}}
@ x,y DCMULTILINE ... PRESENTATION aML_Presentation
<bnMyColor1 ... 4> are almost the same as the ones used for the "COLORGETS" clause.
A preprocessor command can be used to add "PRESENTATION aML_Presentation" to every DCMULTILINE, so very low code changes are necessary.