Page 1 of 2

FWH0711 ButtonBar 2007 problem?

Posted: Tue Nov 13, 2007 3:41 pm
by richard-service
Hi

I test sample Test2007.prg code.

Code: Select all

DEFINE BUTTONBAR ::oMBar OF ::oWnd SIZE 60, 60 2007

   ........

   DEFINE BUTTON OF ::oMBar ACTION MsgInfo( "Calendar" ) ;
      RESOURCE "calendar" PROMPT "calendar" WHEN .F.

Calendar Button Text Gray color no problem.
But Bitmap disappear Gray color not work.

Look attach file below:

Image

Look C5Bar
I think Working fine below:
Image
When Button oBtn object SET Disable() or use WHEN .F. syntax,
bitmap and text change gray color and No Action


Regards,

Richard

Posted: Wed Nov 14, 2007 6:52 am
by Antonio Linares
Richard,

Are you using a modified class of your own ?

Here, samples\Test2007.prg works ok, the bitmap is shown and the text painted in gray color

Posted: Wed Nov 14, 2007 6:58 am
by nageswaragunupudi
What Mr. Richard says is that Bitmap is not grayed. We knew from the beginning that in FWH 2007 style Bar, prompt gets grayed but Bitmap remains the same. ( in case of disabled or when.f. )

Posted: Wed Nov 14, 2007 7:07 am
by Antonio Linares
NageswaraRao,

Actually we can't paint it grayed on top of a gradient.

Have you received my email that I sent you some minutes ago ? We wait for your answer :-)

Posted: Wed Nov 14, 2007 9:23 am
by nageswaragunupudi
Mr Antonio

I am sorry I did not look at my mails till I saw your posting. I sent my reply now.

Regards

Posted: Wed Nov 14, 2007 9:42 am
by Antonio Linares
NageswaraRao,

Ok, thanks

Posted: Wed Nov 14, 2007 10:47 am
by richard-service
Antonio Linares wrote:Richard,

Are you using a modified class of your own ?

Here, samples\Test2007.prg works ok, the bitmap is shown and the text painted in gray color
Hi Antonio,

My first attach jpg within FWH0711 not modify any code.
My Second attach jpg that I want (disable() / When .f.) bitmap became gray color.

Regards,

Richard

Posted: Wed Nov 14, 2007 11:18 am
by Antonio Linares
Richard,

I may send you samples\Test2007.exe and you will see it works fine.

You may have changed something in your used classes or in your code

Posted: Wed Nov 14, 2007 2:53 pm
by richard-service
Antonio Linares wrote:Richard,

I may send you samples\Test2007.exe and you will see it works fine.

You may have changed something in your used classes or in your code
Please send to me. richard-service@hotmail.com

Thank you.

Posted: Thu Nov 15, 2007 2:25 pm
by richard-service
Hi Antonio,

I try to compile test2007.prg for full FWH0711.

I'm sure fwh0711 Btnbmp within ButtonBar 2007 have bug or problem.
Please check it again.

Regards,

Richard

Posted: Thu Nov 15, 2007 3:12 pm
by Silvio
Richard,
i compiled test2007
i not have problems

Posted: Thu Nov 15, 2007 3:38 pm
by richard-service
Silvio wrote:Richard,
i compiled test2007
i not have problems
Hi Silvio,

Have you rebuild all source to LIB?
If not, same as me to use FWH0711\LIB\Fivehc.lib and Fivehx.lib

Could you show your Test2007 screenshot and post it?

Image

Thank you.

Regards,

Richard

Posted: Thu Nov 15, 2007 5:01 pm
by Silvio
Sorry
but I think you must to use a variable to show gray also the bitmap

obtn[n] enable/disable

Posted: Thu Nov 15, 2007 5:06 pm
by nageswaragunupudi
I use different bitmaps for enabled and disabled status

Posted: Thu Nov 15, 2007 5:16 pm
by richard-service
Silvio wrote:Sorry
but I think you must to use a variable to show gray also the bitmap

obtn[n] enable/disable
Hi Silvio,

If use oBtn:Disable() => not work.