Welcome, Guest
Username: Password: Remember me
CodeTyphon Linux OS Development, discussions and problems
  • Page:
  • 1

TOPIC:

Still having problems with plGradient and Checkboxes 3 weeks 1 hour ago #19548

  • Jan Roza
  • Jan Roza's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 210
  • Thank you received: 8
Did a lot of experimenting on Linux Mint 22.3 (GTK2) with windows that have a gradient background (plGradient) and Checkbox and/or DBCheckbox components and it is still very unpredictable.
On my Linux test project I sent you earlier everything works as expected but on one of my projects everything works fine on my Windows 11 machine but I keep having the checkboxes hidden by the background gradient even after moving the gradient to the back.
See the attached screenshot.
I hope you can give me any suggestions, for this is really getting me crazy. 
 
Operating Systems Windows 11 and Linux Mint (64-bit) and virtual Raspberry Pi Desktop

Please Log in or Create an account to join the conversation.

Still having problems with plGradient and Checkboxes 2 weeks 4 days ago #19553

  • Jan Roza
  • Jan Roza's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 210
  • Thank you received: 8
The continuing story of .......... 
I did a comparison of the generated frm file in Windows with the same frm file in Linux of the offending unit in my project and I see some strange things in these files.
Mostly the TDbCheckboxes that I do see in the Windows version don't appear to be in the Linux frm file or are completely misplaced in the Linux frm file.
As a test I copied the missing parts from the Windows frm file to the Linux frm file and recompiled my project in Linux, but still the Checkboxes do not show in the particular window tabsheet. 
I have no idea what goes wrong with this particular unit in Linux but something is obviously not right.
Can you guys please give me some advise on this?
Operating Systems Windows 11 and Linux Mint (64-bit) and virtual Raspberry Pi Desktop

Please Log in or Create an account to join the conversation.

Still having problems with plGradient and Checkboxes 2 weeks 4 days ago #19554

  • Matis A.
  • Matis A.'s Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1397
  • Thank you received: 220
My suggestion,
Copy *.frm and *.pas from Win to Lin.

"Form" files *.frm and *.pas must be the same on any OS
 
PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.

Still having problems with plGradient and Checkboxes 2 weeks 3 days ago #19555

  • Jan Roza
  • Jan Roza's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 210
  • Thank you received: 8
That is how the project came to Linux, by copying all sources from windows to Linux and I had no problems with it but after some time (and CT 9.00) the checkboxes dissappeared behind the gradient.All other components like labels, edits and comboboxes do show in front of the gradient.So I am still at a loss.
 
Operating Systems Windows 11 and Linux Mint (64-bit) and virtual Raspberry Pi Desktop

Please Log in or Create an account to join the conversation.

Last edit: by Jan Roza.

Still having problems with plGradient and Checkboxes 2 weeks 1 day ago #19559

  • Jan Roza
  • Jan Roza's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 210
  • Thank you received: 8
Tested some more but even the simplest project with no more than a PageControl with 2 Tabsheets and a gradient, an Edit, a Checkbox ans a colorprogress on the first tabsheet will not show the checkbox.
See attached test project and screenshot of the formdesigner.
What is wrong with CT since the last upgrade?
Test done with latest CT on Linux Mint 22.3, see attached project and screenshots.
Operating Systems Windows 11 and Linux Mint (64-bit) and virtual Raspberry Pi Desktop

Please Log in or Create an account to join the conversation.

Still having problems with plGradient and Checkboxes 2 weeks 10 hours ago #19560

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4620
  • Thank you received: 1132
Just add a TPanel to TTabSheet
look in CTTest2.zip attach.

 

This problem exists only to GTK2
We test (on Fedora44 MATE) GTK3, QT4, QT5 and QT6 with no problem.

 
PilotLogic Architect and Core Programmer
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Still having problems with plGradient and Checkboxes 2 weeks 3 hours ago #19561

  • Jan Roza
  • Jan Roza's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 210
  • Thank you received: 8
Thanks for the workaround, should have thought of that myself.
But it remains strange that checkboxes react differently than all the other components when placed on a pagecontrol.
I will try a switch to QT5 with the next CT upgrade and for now will put panels on my pagecontrol.
Operating Systems Windows 11 and Linux Mint (64-bit) and virtual Raspberry Pi Desktop

Please Log in or Create an account to join the conversation.

  • Page:
  • 1