Lazarus pascal and window managers

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

Lazarus pascal and window managers

Postby MikeFinch » Sep 7th, '16, 09:03

I have been trying to glean useful information from the Lazarus pascal forum, without much headway. It has been suggested that I try this Mageia forum.

My problem with compiling lazarus pascal programs in Mageia is that the bordericons (top of forms) don't behave correctly. Windows produces the correct outcomes.

The basic problems are that when I request (via the Object Inspector in the IDE) that icons in the top right of the form be invisible (Bordericons = '[ ]'), the request is ignored.

Also when captions are made in the OI, I get '<2>' appearing to the right. When captions are made programatically then there is no '<2>'!

Someone suggested that tweaking window manager(s) might correct the problem. gtk2 and all that etc. I have no expertise in this matter.

Is anyone able to help please?

Thanks
Mike Finch :(
MikeFinch
 
Posts: 61
Joined: Apr 12th, '12, 07:20

Re: Lazarus pascal and window managers

Postby doktor5000 » Sep 7th, '16, 19:51

I'd like to help but sadly I have no clue about lazarus (or fpc for that matter)
Do you happen to know which toolkit is used by lazarus? From what I can see lazarus is at least linked to gtk+-2.0 - which GTK theme and which desktop environment do you use currently ?
It would probably be also useful if you could add some simple comparison screenshots which exhibit the problem.

Apart from that I can only suggest to report that as a bug, after searching if it hasn't been reported yet already: https://wiki.mageia.org/en/How_to_report_a_bug_properly
For completeness's sake and also to allow others to follow up on that bug report, please also post the link to it here in the thread, thanks.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Lazarus pascal and window managers

Postby MikeFinch » Sep 14th, '16, 02:32

doktor5000 : I am attaching 4 screenshots as you requested. Apologies for one being a bit out of focus. (Apparently 3 is the maximum so columns_linux is not included - it is simply a single column).

I am using Mageia 5 which is KDE. Not sure of the GTK theme : this is what I need to brush up on I suspect! - and it may be very relevant[?].
Attachments
header_linux.jpg
header_linux.jpg (70.73 KiB) Viewed 5005 times
columns_windows.jpg
columns_windows.jpg (71.62 KiB) Viewed 5005 times
columns_linux.jpg
columns_linux.jpg (44.83 KiB) Viewed 5005 times
MikeFinch
 
Posts: 61
Joined: Apr 12th, '12, 07:20

Re: Lazarus pascal and window managers

Postby MikeFinch » Sep 14th, '16, 02:36

header_windows was the one missing : now sending.
Attachments
header_windows.jpg
header_windows.jpg (60.85 KiB) Viewed 5005 times
MikeFinch
 
Posts: 61
Joined: Apr 12th, '12, 07:20

Re: Lazarus pascal and window managers

Postby doktor5000 » Sep 14th, '16, 23:10

Instead of using a camera, please next time use e.g. ksnapshot to take actual screenshots (just press print screen / PrtScrn key) and not just photos which you additionally need to crop ;)
And please post the output from running the following command as your regular user in a terminal:
Code: Select all
find ~/ -type f -iname "*gtk*rc*"
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Lazarus pascal and window managers

Postby MikeFinch » Sep 15th, '16, 00:13

doktor5000 : Yes, I know I know - was being lazy (and shaking the camera, which I suspect you are complaining about).

I have run the terminal command your gave and the answer came out as >>>

~/.gimp-2.8/gtkrc
~/Essentials_Mageia/gnucash-2.6.9/doc/gtkrc-2.0.gnucash
~/.kde4/share/config/gtkrc-2.0
~/.kde4/share/config/gtkrc

No doubt this tells you something? I appreciate your interest by the way.
MikeFinch
 
Posts: 61
Joined: Apr 12th, '12, 07:20

Re: Lazarus pascal and window managers

Postby doktor5000 » Sep 15th, '16, 00:42

Can you please show the content of two of them?

Code: Select all
cat ~/.kde4/share/config/gtkrc-2.0
cat ~/.kde4/share/config/gtkrc
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Lazarus pascal and window managers

Postby MikeFinch » Sep 15th, '16, 06:09

doktor5000 >>>>
The first one :
Code: Select all
#created by KDE, Thu Sep 15 08:01:45 2016
#
#If you do not want KDE to override your GTK settings, select
#Appearance -> Colors in the System Settings and disable the checkbox
#"Apply colors to non-KDE4 applications"


The second is :
Code: Select all
[Same] plus
#
#
include "/usr/share/themes/oxygen-gtk/gtk-2.0/gtkrc"

gtk-theme-name="oxygen-gtk"


Are there clues here?
Last edited by doktor5000 on Sep 15th, '16, 13:29, edited 2 times in total.
Reason: added code tags
MikeFinch
 
Posts: 61
Joined: Apr 12th, '12, 07:20

Re: Lazarus pascal and window managers

Postby doktor5000 » Sep 15th, '16, 13:30

Well, this is what you csan try to see if the GTK theme affects it:
If you do not want KDE to override your GTK settings, select Appearance -> Colors in the System Settings and disable the checkbox "Apply colors to non-KDE4 applications"
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Lazarus pascal and window managers

Postby MikeFinch » Sep 17th, '16, 03:27

doktor5000 >> no good. Why would color have anything to do with bordericons etc?

I have been trying other compiler settings in Lazarus (gtk,gtk2,gtk3 etc) with no luck.

I will see what (if anything) the lazarus forum has come up with.

It will be a "Eureka!" moment if Lazarus suddenly behaves like Windows ............ if only I could get there.
MikeFinch
 
Posts: 61
Joined: Apr 12th, '12, 07:20

Re: Lazarus pascal and window managers

Postby doktor5000 » Sep 17th, '16, 11:19

MikeFinch wrote:doktor5000 >> no good. Why would color have anything to do with bordericons etc?

This is not only about colors, but about applying the chosen GTK theme also to KDE applications.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Lazarus pascal and window managers

Postby MikeFinch » Oct 1st, '16, 03:25

doktor5000 : I still have the problem! In fact I don't think forums have ever solved any of my problems yet! Mainly lazarus pascal. The "experts" never seem to know solutions........
MikeFinch
 
Posts: 61
Joined: Apr 12th, '12, 07:20

Re: Lazarus pascal and window managers

Postby doktor5000 » Oct 1st, '16, 06:32

Why are you yelling at me? Good luck with your issue.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Lazarus pascal and window managers

Postby MikeFinch » Oct 1st, '16, 07:12

Sorry, I didn't mean to be objectionable; I am just stating the fact that I never seem to get anywhere. I have just posted a problem, again, to Lazarus Pascal. It's always possible that it is a coding mistake/oversight by me, but when a listbox.items.add(.... doesn't echo a correctly sorted array it's a bit of a worry, not to mention frustration. Sorry again! - and thanks for your interest.
MikeFinch
 
Posts: 61
Joined: Apr 12th, '12, 07:20

Re: Lazarus pascal and window managers

Postby doktor5000 » Oct 1st, '16, 11:35

doktor5000 wrote:I'd like to help but sadly I have no clue about lazarus (or fpc for that matter)


Also seems you didn't try that suggestion yet:
doktor5000 wrote:Apart from that I can only suggest to report that as a bug, after searching if it hasn't been reported yet already: https://wiki.mageia.org/en/How_to_report_a_bug_properly
For completeness's sake and also to allow others to follow up on that bug report, please also post the link to it here in the thread, thanks.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest