dcgetoptions colorgets and dcmultiline

This forum is for eXpress++ general support.
Post Reply
Message
Author
skiman
Posts: 1199
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

dcgetoptions colorgets and dcmultiline

#1 Post 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?
Best regards,

Chris.
www.aboservice.be

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: dcgetoptions colorgets and dcmultiline

#2 Post 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?
The eXpress train is coming - and it has more cars.

skiman
Posts: 1199
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: dcgetoptions colorgets and dcmultiline

#3 Post 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.
Best regards,

Chris.
www.aboservice.be

User avatar
Tom
Posts: 1234
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: dcgetoptions colorgets and dcmultiline

#4 Post 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.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

Post Reply