dccheckbox on dcstatic

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

dccheckbox on dcstatic

#1 Post by skiman »

Hi,

With the latest version a dccheckbox on a dcstatic is only readable if TYPE XBPSTATIC_TYPE_TEXT is used. You can't use a type as TYPE XBPSTATIC_TYPE_FGNDFRAME.

The code below shows the problem.

Code: Select all

#INCLUDE "dcdialog.CH"

FUNCTION Main()

LOCAL GetList[0], oGetStatic, oGetStatic2 ,lCheck := .F.

@ 0,0 DCSTATIC ;
       TYPE XBPSTATIC_TYPE_FGNDFRAME ;		// checkbox shows black caption which is unreadable
       SIZE 500,100 PIXEL OBJECT oGetStatic ;
       COLOR nil, GRA_CLR_WHITE

@ 10,10 dccheckbox lCheck prompt 'Checkbox test' parent oGetStatic PIXEL

@ 150,0 DCSTATIC ;
       TYPE XBPSTATIC_TYPE_TEXT ;        // Checkbox works when type is TEXT
       SIZE 500,100 PIXEL OBJECT oGetStatic2 ;
       COLOR nil, GRA_CLR_WHITE

@ 10,10 dccheckbox lCheck prompt 'Checkbox test' parent oGetStatic2 PIXEL

DCREAD GUI FIT 

RETURN nil

* ----------

PROC appsys ; return
Best regards,

Chris.
www.aboservice.be

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

Re: dccheckbox on dcstatic

#2 Post by rdonnay »

I will look at this, but it's my guess that this is a problem with Xbase++ 2.0, not eXpress++, because there have been no changes to my code in that area.
The eXpress train is coming - and it has more cars.

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

Re: dccheckbox on dcstatic

#3 Post by rdonnay »

Everything looks fine on my computer.
test5.JPG
test5.JPG (21.27 KiB) Viewed 3623 times
The eXpress train is coming - and it has more cars.

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

Re: dccheckbox on dcstatic

#4 Post by skiman »

Hi Roger,

To say it with an often used function of yours: WTF.
Best regards,

Chris.
www.aboservice.be

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

Re: dccheckbox on dcstatic

#5 Post by Tom »

Same her. Latest Xbase++, latest eXpress++:
checkbox.png
checkbox.png (2.9 KiB) Viewed 3621 times
Best regards,
Tom

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

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

Re: dccheckbox on dcstatic

#6 Post by skiman »

Hi,

Yes, looks correct with latest Xbase++.

This is with Xbase 1.9.
checkbox.jpg
checkbox.jpg (13.24 KiB) Viewed 3601 times
Since I'm migrating to 2.0 the problem will be solved automatically.
Best regards,

Chris.
www.aboservice.be

Post Reply