I have not tried it yet (In stupid meetings all day) but I cant
wait to try it!! Expect more stupid questions as I attempt
to make it work, but THANK YOU!!!
You don’t need to take anything into account with your controls with the exception of spacing.
Also, remember that you can load up a Linux VM on your Windows system and run the IDE there to see what the layout will look like since the Linux environment is very similar on a PC and a Pi. I like either Mint or CentOS depending on whether you’re a Debian or Redhat fan.
I have Xojo 2019r1 – it asked if it could update
the project to that version. I said OK, and it did.
It did not ask me anything about Build Automation
or anything like that.
The code compiled and ran fine under windows.
I built it for 32bit arm, and copied the entire build
directory to the Pi, and ran it., it ran fine on the PI!
Thank you!!
HOWEVER—
I coped the GTK3 folder to my project, and also
grabbed the GTK3 “folder” looking thing from the
working xojo example project and dragged it into
my project. (I really don’t understand what that does
by the way) – I added the lines
to my application open event… erased the
build directory on the PC, then rebult the project
coped to the Pi, and NOPE – same bad looking
GUI with odd sized objects…
int the window1.open and that did not work
so I moved it to the app.open I also set a break point
(on windows) and saw that the code was there.
One thing I see in your project, is that you have
modGTK3 (the globe looking icon in your tree above)
in my project (this is from memory, I am not near that
PC right now) I have a folder looking icon in my
tree, and it says GTK3 (I think) I will also verify this
in the AM
In your case, you should have both the folder AND the modGTK3 module in the Navigator list. However, the modGTK3.xojo_code module is all that you need since the folder contains a separate module used for debugging the CSS if you decide to start modifying it.
I would remove the Folder and then use the “File” -> “Import” menu option to import just the modGTK3 module file. Once that is imported, change the App.Open to call just the “modGTK3.InitGlobalGTK3Style()” method to handle the rest. That is all I do in my projects since I’m happy with the CSS values as they are.
OK, it seems my stupidity is with out limit.
Here is what the screen looks like on RPI for
the modgtk3 test project… I ma not sure that
it is right after all…
Sorry to be such a spammer…
I got Tim’s example to work – sortof.
Does this look right? Here is a picture of Tim’s code
compiled and running on my Pi both with and
without the line
'modGTK3.InitGlobalGTK3Style
commented…