DCPUSHBUTTONXPConfig background question

This forum is for eXpress++ general support.
Post Reply
Message
Author
Jeanne
Posts: 34
Joined: Thu Jan 28, 2010 8:11 am
Location: Oklahoma, USA
Contact:

DCPUSHBUTTONXPConfig background question

#1 Post by Jeanne »

When making buttons with the with DC_XpbPushButtonXPConfig and you make the corners round the little part that now is not part of the button shows up as a lttle white triangle and I have backgrounds of dark blue. So how do I get that little triangle of the button to be blue or transparent so the blue background shows up.

Jeanne

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

Re: DCPUSHBUTTONXPConfig background question

#2 Post by rdonnay »

If you run the sample program: \exp19\samples\buttonxp\buttonxp.exe, you will see that it has a blue background and lots of rounded buttons with no problems.

I need to understand a bit more about your problem.

Any chance of a sample program again?
The eXpress train is coming - and it has more cars.

Jeanne
Posts: 34
Joined: Thu Jan 28, 2010 8:11 am
Location: Oklahoma, USA
Contact:

Re: DCPUSHBUTTONXPConfig background question

#3 Post by Jeanne »

Hum... yep I am doing something wrong again.. I will keep looking and see if I can figure out what I did to do this.

Jeann

Jeanne
Posts: 34
Joined: Thu Jan 28, 2010 8:11 am
Location: Oklahoma, USA
Contact:

Re: DCPUSHBUTTONXPConfig background question

#4 Post by Jeanne »

I made a small app that recreates what I am doing. Soooooooooo what am I doing that makes my corners not the same as the background?

Thanks
Jeanne
Attachments
TestBut.zip
(2.42 KiB) Downloaded 860 times

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

Re: DCPUSHBUTTONXPConfig background question

#5 Post by rdonnay »

Jeanne -

When you said you had a blue background I assumed that you were setting a color, not using a bitmap.

BTW - Please send me the blue.bmp so I can compile and run it.

It would help me to figure out a solution.

Roger
The eXpress train is coming - and it has more cars.

Jeanne
Posts: 34
Joined: Thu Jan 28, 2010 8:11 am
Location: Oklahoma, USA
Contact:

Re: DCPUSHBUTTONXPConfig background question

#6 Post by Jeanne »

Sorry I forgot the bitmap.. here it is.
Jeanne
Attachments
blue.zip
(807 Bytes) Downloaded 855 times

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

Re: DCPUSHBUTTONXPConfig background question

#7 Post by rdonnay »

Jeanne -

If you make the below change, it will work perfectly with no white corners.
I am not sure why transparency is not working correctly with a bitmap as a background.
This will take a little work to figure out.

Code: Select all

   DCGETOPTIONS ;
        COLOR GRA_CLR_BLUE ;
        ;// BITMAP BITMAP_BLUE
BTW - The change I gave you a few days ago could cause errors in other DCPUSHBUTTONXP buttons.
I didn't get a chance to test every possibility. One came up yesterday in another application and it is now fixed.
Here's an update:

http://bb.donnay-software.com:8080/support/_dcxbutt.prg
The eXpress train is coming - and it has more cars.

Jeanne
Posts: 34
Joined: Thu Jan 28, 2010 8:11 am
Location: Oklahoma, USA
Contact:

Re: DCPUSHBUTTONXPConfig background question

#8 Post by Jeanne »

I seem to be getting an abort still.. attaced is the screen shot..
Attachments
ABORT.zip
(12.84 KiB) Downloaded 845 times

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

Re: DCPUSHBUTTONXPConfig background question

#9 Post by rdonnay »

Jeanne -

I discovered this problem today also.
I was working on something else and had not finished my testing, so I gave it to you prematurely.

Here it is again. Sorry
http://bb.donnay-software.com:8080/support/_dcxbutt.prg

Roger
The eXpress train is coming - and it has more cars.

Jeanne
Posts: 34
Joined: Thu Jan 28, 2010 8:11 am
Location: Oklahoma, USA
Contact:

Re: DCPUSHBUTTONXPConfig background question

#10 Post by Jeanne »

Got it and no more aborts.. Thanks

Post Reply