Recent

Author Topic: From Linux MX to Windows 10(solved)  (Read 1341 times)

pentilisea

  • Guest
From Linux MX to Windows 10(solved)
« on: March 20, 2023, 11:09:11 am »
Hi,
trying to port my application designed on Linux MX to Win 10.

So far I needed to install package playwawepackage and it worked, the application compiled OK.

Now, even the sound stuff was installed, no sound whatsoever.

Also strange, the button.color or button.font.color instruction do not work - save with
Edit1 which applies the right color when asked to change. Same instruction do not work for buttons and other controls.

The color settings done previously with the object inspector do work,
but once trying to change them like "Button49.Font.Color := clGreen;" - nothing happens.....

Any ideas?

Thanks as always
Klaus

oh, forgott to mention: Windows V 2.20 - Linux V 2.0.12[/b]
« Last Edit: March 20, 2023, 04:58:28 pm by pentilisea »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11351
  • FPC developer.
Re: From Linux MX to Windows 10
« Reply #1 on: March 20, 2023, 11:11:04 am »
IIRC Tbutton has some issues with colors. Windows GDI  doesn't allow it for a plain button (use tbitbtn or tspeedbutton)

pentilisea

  • Guest
Re: From Linux MX to Windows 10
« Reply #2 on: March 20, 2023, 03:18:19 pm »
Well, replacing about 80 Tbuttons to speedbuttons?

How to manage this?

Or, excuse my .... could I create from the Linux MX base an installable application for windows?
Just some hints would do.....

Klaus
« Last Edit: March 20, 2023, 03:24:00 pm by pentilisea »

dseligo

  • Hero Member
  • *****
  • Posts: 1177
Re: From Linux MX to Windows 10
« Reply #3 on: March 20, 2023, 04:28:47 pm »
Well, replacing about 80 Tbuttons to speedbuttons?

How to manage this?

Right click on the button, Change class and choose your new button (e.g. TSpeedButton). 5 minutes work for 80 buttons.

But, test first which button will do what you want. I use TBCButtonFocus from BGRAControls package in Online Package Manager.

pentilisea

  • Guest
Re: From Linux MX to Windows 10
« Reply #4 on: March 20, 2023, 04:55:07 pm »
Hi Desiligo.

Thanks.
I managed to cross compile my application, so it works on win10 OK.
Just for info this old post helped:

http://lazplanet.blogspot.com/2020/05/cross-compile-on-lazarus.html

I will try your suggestion, but I'm slow.
However the main intention to have win users run my application is solved - still much work to do and without your help
I'll still be guessing around.
Klaus

 

TinyPortal © 2005-2018