TSay class and non themed apps

Post Reply
User avatar
AlexSchaft
Posts: 172
Joined: Fri Oct 07, 2005 1:29 pm
Location: Edenvale, Gauteng, South Africa

TSay class and non themed apps

Post by AlexSchaft »

Hi, I got an argument error .or. in the tsay class in here

Code: Select all

METHOD EraseBkGnd( hDC ) CLASS TSay

   if IsAppThemed() .or. ::lTransparent
      return 1
   endif

return Super:EraseBkGnd( hDC )
It seems lTransparent does not get initialized. I added

::lTransparent := .f. to TSay():New()

Not exactly sure why it came up, but it did
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: TSay class and non themed apps

Post by Enrico Maria Giordano »

Code: Select all

METHOD EraseBkGnd( hDC ) CLASS TSay

   DEFAULT ::lTransparent := .f.  <-- NOTE

   if IsAppThemed() .or. ::lTransparent
      return 1
   endif

return Super:EraseBkGnd( hDC )
EMG
Post Reply