Page 1 of 1

Lazarus pascal and window managers

PostPosted: Sep 7th, '16, 09:03
by MikeFinch
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 :(

Re: Lazarus pascal and window managers

PostPosted: Sep 7th, '16, 19:51
by doktor5000
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.

Re: Lazarus pascal and window managers

PostPosted: Sep 14th, '16, 02:32
by MikeFinch
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[?].

Re: Lazarus pascal and window managers

PostPosted: Sep 14th, '16, 02:36
by MikeFinch
header_windows was the one missing : now sending.

Re: Lazarus pascal and window managers

PostPosted: Sep 14th, '16, 23:10
by doktor5000
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*"

Re: Lazarus pascal and window managers

PostPosted: Sep 15th, '16, 00:13
by MikeFinch
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.

Re: Lazarus pascal and window managers

PostPosted: Sep 15th, '16, 00:42
by doktor5000
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

Re: Lazarus pascal and window managers

PostPosted: Sep 15th, '16, 06:09
by MikeFinch
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?

Re: Lazarus pascal and window managers

PostPosted: Sep 15th, '16, 13:30
by doktor5000
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"

Re: Lazarus pascal and window managers

PostPosted: Sep 17th, '16, 03:27
by MikeFinch
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.

Re: Lazarus pascal and window managers

PostPosted: Sep 17th, '16, 11:19
by doktor5000
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.

Re: Lazarus pascal and window managers

PostPosted: Oct 1st, '16, 03:25
by MikeFinch
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........

Re: Lazarus pascal and window managers

PostPosted: Oct 1st, '16, 06:32
by doktor5000
Why are you yelling at me? Good luck with your issue.

Re: Lazarus pascal and window managers

PostPosted: Oct 1st, '16, 07:12
by MikeFinch
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.

Re: Lazarus pascal and window managers

PostPosted: Oct 1st, '16, 11:35
by doktor5000
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.