Page 2 of 2

PostPosted: Wed Dec 03, 2008 5:24 pm
by Horizon
Antonio,

Have you checked it?

PostPosted: Wed Dec 03, 2008 10:02 pm
by Antonio Linares
Hakan,

yes, I have seen it. This fix seems to be ok in Class TFolder line 453:
Code: Select all  Expand view
         if IsAppThemed() .and. ! ::lTransparent
            if Empty( oDlg:oBrush:hBitmap )
               oDlg:bEraseBkGnd = { | hDC | DrawPBack( oDlg:hWnd, hDC ), 1 }
            endif
         endif

PostPosted: Thu Dec 04, 2008 1:32 am
by fraxzi
Hi!

I noticed the first image with groupbox's font is different from folder's...

My problem is with 8.11 (or even the 2.4) the groupbox inherited the folder's font....

any of groupbox or folder or control class modified?

My regards,



Horizon wrote:Hi Antonio,

As I said these lines are not mine. I use SetColor method in dialog. Without these lines transparent does not works.

I have captured one of my form with changes and without changes below.

with changes:
Image

without (means i deleted changed Tfolder.prg from my make list. use standart library.)
Image

The code is the same.

PostPosted: Thu Dec 04, 2008 2:19 am
by fraxzi
This could be related... Please look...


http://forums.fivetechsoft.com/viewtopic.php?p=71105#71105


Regards,

PostPosted: Thu Dec 04, 2008 5:35 am
by Horizon
Hi Antonio,

After this correction, There is no need to set color to dialog. It is OK for me.

Did yo consider the my second issue. (The font nCharSer problem)?

Thanks,

Antonio Linares wrote:Hakan,

yes, I have seen it. This fix seems to be ok in line 453:
Code: Select all  Expand view
         if IsAppThemed() .and. ! ::lTransparent
            if Empty( oDlg:oBrush:hBitmap )
               oDlg:bEraseBkGnd = { | hDC | DrawPBack( oDlg:hWnd, hDC ), 1 }
            endif
         endif

PostPosted: Thu Dec 04, 2008 8:30 am
by Antonio Linares
Frances,

Yes, I see what you mean.

But we have not found a solution for it yet :-(

Class TControl Method Colors() is the last place where the font can be set, before painting, and it is ignored.

PostPosted: Thu Dec 04, 2008 10:07 am
by Antonio Linares
Hakan,

We have implemented your charset suggestion, this way:
Code: Select all  Expand view
   #ifdef _DEFAULT_CHARSET_
      DEFAULT nCharSet := _DEFAULT_CHARSET_
   #endif

as we use uppercase for defines. Thanks

PostPosted: Thu Dec 04, 2008 10:09 am
by Antonio Linares
Hakan,

Or are you using a public variable for it ?

PostPosted: Thu Dec 04, 2008 11:24 am
by Horizon
Hi Antonio,

I have not used yet.

I think I can define top of my application like that

#define _DEFAULT_CHARSET_ 1

Can I use it like that?

PostPosted: Fri Dec 12, 2008 10:16 pm
by Horizon
Hi Antonio,

Have you added these changes 8.11. Can I download again 8.11?

Thanks,