Recent

Author Topic: TPageControl has wrong background color when created in dll  (Read 2393 times)

isml

  • New Member
  • *
  • Posts: 15
TPageControl has wrong background color when created in dll
« on: September 06, 2018, 04:29:32 pm »
When created in a normal application, TPageControl has white background color, but when created in dll, the background color is grey.
Attachment is a test project that could produce this problem.

balazsszekely

  • Guest
Re: TPageControl has wrong background color when created in dll
« Reply #1 on: September 06, 2018, 04:51:30 pm »
I tested with my plugin library, looks white to me. Please test attached project.

isml

  • New Member
  • *
  • Posts: 15
Re: TPageControl has wrong background color when created in dll
« Reply #2 on: September 07, 2018, 04:11:05 am »
I tested with my plugin library, looks white to me. Please test attached project.


Thanks for your reply. I tried your project, it is ok. I think the main difference is that in your test project, TPageControl is in a TFrom in the dll. Could you test my attached project? Thanks.

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: TPageControl has wrong background color when created in dll
« Reply #3 on: September 07, 2018, 06:34:44 am »
When created in a normal application, TPageControl has white background color, but when created in dll, the background color is grey.
Attachment is a test project that could produce this problem.
It will not work. The dll application and the Exe application are two distinct classes. getmem has the right idea a bit sketchy using the fPluginForm variable but that is easily solved.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

 

TinyPortal © 2005-2018