buttons too big for linux

I noticed when I tried using a project created on my mac on the linux machine the buttons were oversized (and overflowed whatever space they are supposed to take up). I thought it was just because IU was using a project from the other computer, but now that I’m sitting at it and trying the different examples and a few of my own, the buttons (and text fields etc) seem to be a bit wonky.

I thought maybe it’s a setting in my distro, but I can’t seem to locate anything, well, nothing is jumping out at me.

Just wondering how best to address this? Maybe there’s a little trick to employ?

https://imgur.com/a/P4DK6P6

edit: how to use the image tags? it just comes up with a broken image icon in my browser?

I have just realised it also includes the Xojo IDE, so it probably us something in my setup. If there are any other linux users and if they could let me know their experience, thanks.

https://imgur.com/lHTuq04

GTK3 Theming modGTK3 Resolves layout corruption under ALL Linux Distros

You can’t really share except from DropBox that I’ve uncovered. Copy the link for your image and pace it in between the tags, but change the last bit of the link from ?dl=0 to ?raw=1. This will allow the image to show in the forum threads. This is an example of using the modGTK3 class mentioned above.

[quote=495175:@Da maxhosts]Just wondering how best to address this? Maybe there’s a little trick to employ?

edit: how to use the image tags? it just comes up with a broken image icon in my browser?[/quote]
You need to post the URL to the image and not just the URL to imgur.

This is the URL to imgur:

https://imgur.com/a/P4DK6P6

but the image is:

https://i.imgur.com/9HnofEJ.png

Here’s the SQLite Example app with the modGTK3 module added and calling

#If TargetLinux modGTK3.InitGlobalGTK3Style #EndIf

In an added Open event in “App” Class sorts the control sizes.

Wow, Thanks guys! (first re image linking) Awesome! I thought there had to be a better way. Thanks.

Now onto Tim and the demo SQLite app, that does look cool. I did try the modGTK3 way, but it was late at night and I really hadn’t had enough coffee. Was it really that simple? I do need to go back over and re-read it because I got the feeling I needed to add it to all the controls individually, but I knew that had to be wrong.

Following what I see here: https://forum.xojo.com/48126-gtk3-theming-modgtk3-resolves-layout-corruption-under-all-linux I’m still reading 2018 posts but I would appreciate a quick breakdown somewhere if possible.

For example, that link: https://www.jo-tools.ch/xojo/gtk3-style-controls/

[quote] How and where

  1. App.Open -> modGTK3.InitGlobalGTK3Style()
  2. Control.Open -> me.InitGTK3Control()
    modGTK3 extends this Method for Controls. In this example project, it’s called from Control Subclasses. Subclassing your Controls is highly recommended, as you get a single place for tweaks and workarounds for different XojoVersions or BuildTargets.
    [/quote]
    Specfically, #2, Control.Open in my IDE I only have Controls (plural), so do I need to add this to each and every control that I need to fix? Like I say, it was late, and right now I’m away form linux on my MBP, so can’t test it right now. Maybe I put the theme in the wrong spot…

At least I feel I am making headway with this (I have been struggling with a continually crashing VS2019 the last couple of days and long for some stability LOL)

Thanks for the help guys! Cheers!

Note: @Jim McKay has put up a BitBucket of the project, which is more up to date.[quote=495418:@Da maxhosts] so do I need to add this to each and every control that I need to fix?[/quote]
As far as I remember… In the updated version by Jim: no.

Thanks jürg, I have spent all afternoon working from that bitbucket, but there is obviously some xojo concept I am not getting. I am trying to move on for the moment. But thanks, I do appreciate the input… :slight_smile:

I hope these steps/how-to work.