B4J Question Raspberry Pi quirk, hopefully this helps someone else.

rspitzer

Active Member
I have had an ongoing issue with the main form setting when launching an application on the PI. The issue did not happen on my windows desktop in debug mode. I use a main form that stretches to the entire screen - 1280x800. I have the luxury knowing that the application will never be used on any other screen size. The main form is set to transparent so no title bar shows up. Basically the main form is used as a background. On the form I would have 3 or 4 panels (spaced apart) for various inputs from the user. When touching an area on the screen between the panels, on the PI, all the panels would disappear to the back, as if they were being sent behind the main form. On my windows desktop this did not happen. The quirk and fix turned out to be not setting the:
bad main form:
    MainForm.WindowLeft=0
    MainForm.WindowTop=0

But instead setting it to:

fixed main form:
    MainForm.WindowLeft=1
    MainForm.WindowTop=1

For some reason using "0" is illegal I guess on the PI.

Anyway hope this helps someone.
 
Top