Recent

Author Topic: Screen abnomally  (Read 521 times)

tdb

  • New Member
  • *
  • Posts: 36
Screen abnomally
« on: June 18, 2026, 11:24:11 am »
Small issue with Lazarus in that the app window in the created program seems to have a small white area at the top left just under the application icon.
It is not a component and the program is very basic so not sure what it is but would be nice to be able to remove it.

Anyone know how to fix.

jamie

  • Hero Member
  • *****
  • Posts: 7857
Re: Screen abnomally
« Reply #1 on: June 18, 2026, 11:27:19 am »
OS, picture ?
The only true wisdom is knowing you know nothing

tdb

  • New Member
  • *
  • Posts: 36
Re: Screen abnomally
« Reply #2 on: June 18, 2026, 11:43:29 am »
Hi Jamie, Not sure how to upload image - Ok now i see it at the bottom for message windows.
Dooooh. 

Handoko

  • Hero Member
  • *****
  • Posts: 5559
  • My goal: build my own game engine using Lazarus
Re: Screen abnomally
« Reply #3 on: June 18, 2026, 11:54:59 am »
I've just tested on Windows 10, no problem as you can see on screenshot below.

You can try to run the code, here is the link:
https://forum.lazarus.freepascal.org/index.php/topic,74239.msg584799.html#msg584799

If the issue you mentioned does not happen on the code, that probably means there is a bug in your code.

If you need more codes to test, I would recommend you this link, which has many short demos:
https://wiki.freepascal.org/Portal:HowTo_Demos
« Last Edit: June 18, 2026, 12:01:47 pm by Handoko »

Xenno

  • Full Member
  • ***
  • Posts: 133
    • BS Programs
Re: Screen abnomally
« Reply #4 on: June 18, 2026, 12:03:53 pm »
Hi Jamie, Not sure how to upload image - Ok now i see it at the bottom for message windows.
Dooooh.

The title bar and border look so thick. It must be from OS styling.
Lazarus 4.6, Windows 10, https://www.youtube.com/@bsprograms
If I want to share, I give. If I want money, I sell. I don't set traps.

Thaddy

  • Hero Member
  • *****
  • Posts: 19499
  • Glad to be alive.
Re: Screen abnomally
« Reply #5 on: June 18, 2026, 12:27:51 pm »
It is not Windows. Which widgetset are you using? On Qt6 it also looks OK.
Any "programmer" that knows only one programming language is not a programmer

tdb

  • New Member
  • *
  • Posts: 36
Re: Screen abnomally
« Reply #6 on: June 18, 2026, 12:35:36 pm »
Ok tomorrow (late here in Oz) I will build very very basic app and see if it occurs. 
will let you know.

Thaddy

  • Hero Member
  • *****
  • Posts: 19499
  • Glad to be alive.
Re: Screen abnomally
« Reply #7 on: June 18, 2026, 03:21:30 pm »
It is really difficult to guess without code, remember?
- platform
- widget set
- preferably code

Please....

I just mimicked Handoko's code with Qt6...
« Last Edit: June 18, 2026, 03:23:34 pm by Thaddy »
Any "programmer" that knows only one programming language is not a programmer

tdb

  • New Member
  • *
  • Posts: 36
Re: Screen abnomally
« Reply #8 on: June 19, 2026, 05:41:19 am »
Ok built a small test program and I have found what I believe to be the culprit - Chilkat (Microsoft Graph library).
At the very top of the program I create a global variable to hold the licence for the DLL library with one line like this
    //oGlob := TaxcChilkatGlobal.Create(Self); 

When comment the line out - all is normal, when uncommented white block appears.
I image it is some sort of watermark of the license or some such and with Delphi it is possible hidden in the top bar but not with Lazarus.

Anyway I have written to Chilkat about a fix or work-around.

tdb

  • New Member
  • *
  • Posts: 36
Re: Screen abnomally
« Reply #9 on: June 20, 2026, 04:50:57 am »
Ok the ChilKat support replied with the solution.

"The white marker is  the Lazarus ActiveX visual wrapper window being created for TaxcChilkatGlobal.
ChilkatGlobal is logically a non-visual COM/ActiveX object, but Lazarus imported it as a T... ActiveX control class.

When you do:
oGlob := TaxcChilkatGlobal.Create(Self);

Lazarus creates a small hosted ActiveX window/control on the form. That tiny white shape is the empty ActiveX host/control surface, not something drawn by Chilkat intentionally.
Use the non-visual COM object creation style instead of the T... wrapper, for example:"

Code: Pascal  [Select][+][-]
  1. uses
  2.   ComObj;
  3.  
  4. var
  5.   glob: OleVariant;
  6.  
  7. begin
  8.   glob := CreateOleObject('Chilkat.Global');
  9.   glob.UnlockBundle('...');
  10. end;

tdb

  • New Member
  • *
  • Posts: 36
Re: Screen abnomally
« Reply #10 on: June 20, 2026, 04:52:30 am »
Sorry I should have added when implemented this fixed the issue - Happy now no more white square :D

 

TinyPortal © 2005-2018