in GETOPTIONS the COLORGETS and DISABLEDCOLOR does not work

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
digitsoft
Posts: 461
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

in GETOPTIONS the COLORGETS and DISABLEDCOLOR does not work

#1 Post 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.
Attachments
Ejemplo.jpg
Ejemplo.jpg (354.64 KiB) Viewed 11592 times
Nolberto Paulino
Regards

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

Re: in GETOPTIONS the COLORGETS and DISABLEDCOLOR does not w

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

User avatar
digitsoft
Posts: 461
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: in GETOPTIONS the COLORGETS and DISABLEDCOLOR does not w

#3 Post 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.
Nolberto Paulino
Regards

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

Re: in GETOPTIONS the COLORGETS and DISABLEDCOLOR does not w

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

User avatar
digitsoft
Posts: 461
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: in GETOPTIONS the COLORGETS and DISABLEDCOLOR does not w

#5 Post 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
Attachments
Error.jpg
Error.jpg (28.09 KiB) Viewed 11562 times
Nolberto Paulino
Regards

User avatar
digitsoft
Posts: 461
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: in GETOPTIONS the COLORGETS and DISABLEDCOLOR does not w

#6 Post by digitsoft »

Hi Roger
Can you tell me where is the code DCCHECKBOX and DCCOMBOBOX to make the change disabledColor, then I pass code.
Nolberto Paulino
Regards

User avatar
digitsoft
Posts: 461
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: in GETOPTIONS the COLORGETS and DISABLEDCOLOR does not w

#7 Post by digitsoft »

Hi Roger
Just do not function in DCCOMBOBOX
Nolberto Paulino
Regards

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

Re: in GETOPTIONS the COLORGETS and DISABLEDCOLOR does not w

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

User avatar
digitsoft
Posts: 461
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: in GETOPTIONS the COLORGETS and DISABLEDCOLOR does not w

#9 Post by digitsoft »

thanks Roger
For your help.
Nolberto Paulino
Regards

Post Reply