Page 1 of 1

DCPUSHBUTTONXPConfig background question

Posted: Tue Mar 09, 2010 12:25 pm
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

Re: DCPUSHBUTTONXPConfig background question

Posted: Tue Mar 09, 2010 12:43 pm
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?

Re: DCPUSHBUTTONXPConfig background question

Posted: Tue Mar 09, 2010 3:13 pm
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

Re: DCPUSHBUTTONXPConfig background question

Posted: Wed Mar 10, 2010 7:51 am
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

Re: DCPUSHBUTTONXPConfig background question

Posted: Wed Mar 10, 2010 9:05 am
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

Re: DCPUSHBUTTONXPConfig background question

Posted: Wed Mar 10, 2010 9:40 am
by Jeanne
Sorry I forgot the bitmap.. here it is.
Jeanne

Re: DCPUSHBUTTONXPConfig background question

Posted: Wed Mar 10, 2010 9:44 am
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

Re: DCPUSHBUTTONXPConfig background question

Posted: Wed Mar 10, 2010 12:02 pm
by Jeanne
I seem to be getting an abort still.. attaced is the screen shot..

Re: DCPUSHBUTTONXPConfig background question

Posted: Wed Mar 10, 2010 12:15 pm
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

Re: DCPUSHBUTTONXPConfig background question

Posted: Wed Mar 10, 2010 12:55 pm
by Jeanne
Got it and no more aborts.. Thanks