Purebasic on a 5 inch touch screen. Problems...

Raspberry PI specific forum
Joris
Addict
Addict
Posts: 885
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Purebasic on a 5 inch touch screen. Problems...

Post by Joris »

Using Purebasic on a small screen (5 inch touch screen) :
PB works great, but the sub-windows for settings, as Compiler, Preferences and so, are to big and so a lot of there settings are out of reach.
The windows are to big for such a small screen.

Is there a manner to get rid of these problems (unless waiting on a PB update).

Thanks
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
User avatar
Caronte3D
Addict
Addict
Posts: 1027
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: Purebasic on a 5 inch touch screen. Problems...

Post by Caronte3D »

Try to change the O.S. Zoom so everything become smaller
User avatar
mk-soft
Always Here
Always Here
Posts: 5334
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Purebasic on a 5 inch touch screen. Problems...

Post by mk-soft »

Start a VNC server and work remotely (perhaps too slowly) or
Program on the PC and compile on the PI.
File exchange with WinSCP (Window) or under Linux mount the PI drive (sftp://[IP of the PI]).
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Joris
Addict
Addict
Posts: 885
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Re: Purebasic on a 5 inch touch screen. Problems...

Post by Joris »

@Caronte3D
What do you mean changing O.S. and Zoom ?
The OS is Raspbian and that has no zoom unless a few settigns in the appearance...

@mk-soft
I do work with VNC and can do filetransfer both ways, but the problem is the same there. You get the same size of working space.
PB itself does resize, but not it's sub-windows (a lot of gadgets like "OK" or "Cancel"are unreachable).

My 5 inch hdmi screen has a resolution of 800x460 pixels.
I wont to discover how big I can make my own source windows then and how to position or move them, but ...
Some windows are half placed outside the screen and can't be moved... Just maximizing is possible but also no moving afterwords.
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
User avatar
Caronte3D
Addict
Addict
Posts: 1027
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: Purebasic on a 5 inch touch screen. Problems...

Post by Caronte3D »

I mean changing the DPI but I haven't noticed it's not Windows, I don't know if the PI O.S. have something like that.
Anyway I think your screen resolution is way too small, the best attempt maybe what mk-soft said.
infratec
Always Here
Always Here
Posts: 6817
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Purebasic on a 5 inch touch screen. Problems...

Post by infratec »

You can also use xrdp.
With this you can set the client resolution to what ever you want. (mstsc on windows for example)

Or an own xserver on windows for example.
https://sourceforge.net/projects/vcxsrv/
Joris
Addict
Addict
Posts: 885
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Re: Purebasic on a 5 inch touch screen. Problems...

Post by Joris »

Maybe I explained my problem not so well. Or I do not understand some given solution's.
The 5 inch hdmi screen has a resolution of 800 x 460 pixels.
When, for example opening the Preferences window of PB, it doesn't fit completely on the screen.
The buttons OK and Cancel are outside the screen and I can't move the window up.
Scaling can't be done on raspbian itself. Scaling with VNC or XRDP just delivers a bigger sized screen of the same pixels.
For my own sources I will also have to reconfigure all GUI to this smaller workspace.
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
infratec
Always Here
Always Here
Posts: 6817
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Purebasic on a 5 inch touch screen. Problems...

Post by infratec »

A client for xrdp does not scale the pixels.
If you tell the client to use 1280x1024, then it uses this resolution and does not scale the rasp resolution to this value.

So you can work 'normal' with the PB IDE.
I don't think that you can 'simply' modify the IDE to fit this small resolution.
But ... the IDE is open source. Feel free to modify it as you need.

VNC shows you the 'real' resolution, so this is not what you want.

If you start an xserver on your PC, you uses also the resolution of your PC and you can start the IDE from the rasp.
Joris
Addict
Addict
Posts: 885
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Re: Purebasic on a 5 inch touch screen. Problems...

Post by Joris »

But ... the IDE is open source. Feel free to modify it as you need.
('the IDE ... ha, that is the name for all the windows... I had to look it up)
@infratec I suppose that has to be done in C (which then is not possible for me. I'll have to look for the sources...).
I could import the PB-settings from W10 which helped for most things (unreachable to set on 5 inch).

Thanks.
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
Post Reply