Recent

Author Topic: Windows 10 - GUI not showing  (Read 3808 times)

mastro59

  • New Member
  • *
  • Posts: 16
Windows 10 - GUI not showing
« on: September 10, 2018, 06:44:02 pm »
I am not a an expert, but this small program I wrote is working perfectly on a Win7/64 computer but shows the same error on a real windows10 and on a VMware VM.
could well be a wrong compiler setting... have no clue, so asking for help. Attached screen shots showing that the application is running correctly, but GUI doesn't pop up, so is not visible on the desktop, but moving the mouse on the taskbar Icon, it shows that the program is there, running, just waiting for someone to click on the TButtons.
Attaching only the relevant part of the desktop, and just 1 of the 2 windows 10 problems, because of attachment size limit.

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: Windows 10 - GUI not showing
« Reply #1 on: September 10, 2018, 06:52:57 pm »
Hello mastro59,
Welcome to the forum.

Have you tried a simple 'hello world' and run it on that Win10 system?

You can try to disable antivirus or Windows Defender, that may be the thing that causes the problem.

If you find something not working correctly, you can share the source code here so it will be tested by many users using different OS/hardware.

To do it:
Create a new folder and copy all the necessary files into that folder except: the binary, *.bak, lib and backup folders. Compress the folder and send the zip file here. If you're not willing to publicize your project, you can write a demo that showing the issue.
« Last Edit: September 10, 2018, 06:56:53 pm by Handoko »

mastro59

  • New Member
  • *
  • Posts: 16
Re: Windows 10 - GUI not showing
« Reply #2 on: September 10, 2018, 07:34:19 pm »
Hi Handoko
nothing to hide, I can post my code. to simplify the problem identification I removed all Tbottons and labels, but 2, one click and the label will print Hello World in a Tlabel, very simple, but same issue in Window 10 VM
attaching zip file with simplified code.
thanks

wp

  • Hero Member
  • *****
  • Posts: 11858
Re: Windows 10 - GUI not showing
« Reply #3 on: September 10, 2018, 08:18:47 pm »
Your form is outside your screen (Left 1965) - select a more decent value, maybe Left = 100.

mastro59

  • New Member
  • *
  • Posts: 16
Re: Windows 10 - GUI not showing
« Reply #4 on: September 10, 2018, 08:27:10 pm »
You are right, This is what is happening when using 2 monitors for writing code and 1 for testing it.
I moved the Form1 to the second monitor. Kind of wrong that when running the program on a PC with only 1 monitor it is still putting the GUI on a non existing location. Anyway… problem solved, thanks guys

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: Windows 10 - GUI not showing
« Reply #5 on: September 10, 2018, 10:30:21 pm »
To prevent this happening in the future, remember to change the form's Position in the object inspector (see image) unless you use code that initializes/restores the form's position/size at startup.
« Last Edit: September 10, 2018, 10:33:55 pm by lucamar »
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

 

TinyPortal © 2005-2018