Page 1 of 1

in GETOPTIONS the COLORGETS and DISABLEDCOLOR does not work

Posted: Fri Oct 28, 2016 1:22 pm
by digitsoft
Hi Roger
in GETOPTIONS the COLORGETS and DISABLEDCOLOR does not work if I use DCCOMBOBOX, DCCHECKBOX, DCMULTILINE ignores him the color that has a picture attached place.

Re: in GETOPTIONS the COLORGETS and DISABLEDCOLOR does not w

Posted: Fri Oct 28, 2016 1:27 pm
by rdonnay
It probably never did work because it was designed only to work with @..SAY..GET and @..DCGET.

I will look into what it will take to enhance this capability.

Re: in GETOPTIONS the COLORGETS and DISABLEDCOLOR does not w

Posted: Fri Oct 28, 2016 1:35 pm
by digitsoft
thanks Roger
That would be great.
rdonnay wrote:It probably never did work because it was designed only to work with @..SAY..GET and @..DCGET.

I will look into what it will take to enhance this capability.

Re: in GETOPTIONS the COLORGETS and DISABLEDCOLOR does not w

Posted: Tue Nov 01, 2016 7:38 am
by rdonnay
I don't understand your problem.
I was wrong about only GETS supporting DISABLEDCOLOR.
I looked at my source code and it is supported by all DC* commands.

Run this sample:

Code: Select all

#INCLUDE "dcdialog.CH"

FUNCTION Main()

LOCAL GetList[0], cName := 'Hello there', GetOptions, lCheck := .t., ;
      cMle := ''

@ 0,0 DCGET cName WHEN {||.t.}
@ 2,0 DCGET cName WHEN {||.f.}

@ 4,0 DCCHECKBOX lCheck PROMPT 'Check Me' WHEN {||.t.}
@ 6,0 DCCHECKBOX lCheck PROMPT 'Check Me' WHEN {||.f.}

@ 8,0 DCMULTILINE cMle SIZE 30,2 WHEN {||.t.}
@11,0 DCMULTILINE cMle SIZE 30,2 WHEN {||.f.}

DCGETOPTIONS DISABLEDCOLOR GRA_CLR_CYAN

DCREAD GUI FIT OPTIONS GetOptions

RETURN nil


PROC appsys ; RETURN

Re: in GETOPTIONS the COLORGETS and DISABLEDCOLOR does not w

Posted: Tue Nov 01, 2016 8:15 am
by digitsoft
Hi Roger
in COMBOBOX not Work
and DC CHECKBOX works differently if you only paints the foreground color Caption with having disabledColor it would look better



#INCLUDE "dcdialog.CH"

FUNCTION Main()

LOCAL GetList[0], cName := 'Hello there', GetOptions, lCheck := .t., ;
cMle := '', aCombo := {'Hello there 1','Hello there 2','Hello there 3',' '}, cCombo := 'Hello there 1'

@ 0,0 DCGET cName WHEN {||.t.}
@ 2,0 DCGET cName WHEN {||.f.}

@ 4,0 DCCHECKBOX lCheck PROMPT 'Check Me' WHEN {||.t.}
@ 6,0 DCCHECKBOX lCheck PROMPT 'Check Me' WHEN {||.f.}

@ 8,0 DCMULTILINE cMle SIZE 30,2 WHEN {||.t.}
@11,0 DCMULTILINE cMle SIZE 30,2 WHEN {||.f.}

@ 14.4,0 DCCOMBOBOX cCombo LIST aCombo TYPE XBPCOMBO_DROPDOWNLIST SIZE 12.9,04 WHEN {||.t.}
@ 16.4,0 DCCOMBOBOX cCombo LIST aCombo TYPE XBPCOMBO_DROPDOWNLIST SIZE 12.9,04 WHEN {||.f.}


DCGETOPTIONS DISABLEDCOLOR GRA_CLR_CYAN

DCREAD GUI FIT OPTIONS GetOptions

RETURN nil


PROC appsys ; RETURN

rdonnay wrote:I don't understand your problem.
I was wrong about only GETS supporting DISABLEDCOLOR.
I looked at my source code and it is supported by all DC* commands.

Run this sample:

Code: Select all

#INCLUDE "dcdialog.CH"

FUNCTION Main()

LOCAL GetList[0], cName := 'Hello there', GetOptions, lCheck := .t., ;
      cMle := ''

@ 0,0 DCGET cName WHEN {||.t.}
@ 2,0 DCGET cName WHEN {||.f.}

@ 4,0 DCCHECKBOX lCheck PROMPT 'Check Me' WHEN {||.t.}
@ 6,0 DCCHECKBOX lCheck PROMPT 'Check Me' WHEN {||.f.}

@ 8,0 DCMULTILINE cMle SIZE 30,2 WHEN {||.t.}
@11,0 DCMULTILINE cMle SIZE 30,2 WHEN {||.f.}

DCGETOPTIONS DISABLEDCOLOR GRA_CLR_CYAN

DCREAD GUI FIT OPTIONS GetOptions

RETURN nil


PROC appsys ; RETURN

Re: in GETOPTIONS the COLORGETS and DISABLEDCOLOR does not w

Posted: Tue Nov 01, 2016 8:47 am
by digitsoft
Hi Roger
Can you tell me where is the code DCCHECKBOX and DCCOMBOBOX to make the change disabledColor, then I pass code.

Re: in GETOPTIONS the COLORGETS and DISABLEDCOLOR does not w

Posted: Tue Nov 01, 2016 9:38 am
by digitsoft
Hi Roger
Just do not function in DCCOMBOBOX

Re: in GETOPTIONS the COLORGETS and DISABLEDCOLOR does not w

Posted: Tue Nov 01, 2016 10:22 am
by rdonnay
Can you tell me where is the code DCCHECKBOX and DCCOMBOBOX to make the change disabledColor, then I pass code.
Disabled color is part of Presentation Parameters.

My code already sets the PP correctly, however XbpComboBox() does not behave correctly.

This appears to be a problem with Xbase++.

Re: in GETOPTIONS the COLORGETS and DISABLEDCOLOR does not w

Posted: Tue Nov 01, 2016 1:38 pm
by digitsoft
thanks Roger
For your help.