PB 5.50 x64 and latest version Ubuntu 16.04

Linux specific forum
infratec
Always Here
Always Here
Posts: 6873
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

PB 5.50 x64 and latest version Ubuntu 16.04

Post by infratec »

Hi,

I tested a program which was not working like expected.
Then I installed the latest updates for the OS and now...

I don't see the menu of the program.

Doesn't matter if I choose gtk2 or gtk3.

before the latest updates I saw it, but not on top of the OS, instead I saw it like in windows, below the program frame.

All very strange.
And gtk3 is really not usable with PB and crossplatform programs.

Any ideas about the missing menu?

Bernd
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: PB 5.50 x64 and latest version Ubuntu 16.04

Post by heartbone »

If you saw it in a 5.4x version of the compiler then what I offer will not help you.
But if the last version where your code worked was earlier than 5.4x, and your menu is built with the 2D graphics commands,
then it may help to insert this initialization routine (discovered by BasicallyPure)
after the screen is created and before your code creates the first display.

Code: Select all

CompilerIf #PB_Compiler_OS=#PB_OS_Linux
   While WindowEvent() : Wend
   FlipBuffers()
   ClearScreen(0)
CompilerEndIf

The missing graphics was first reported here as a bug,
but the thread was inappropriately moved into the "Coding Questions" section.
Keep it BASIC.
Oma
Enthusiast
Enthusiast
Posts: 312
Joined: Thu Jun 26, 2014 9:17 am
Location: Germany

Re: PB 5.50 x64 and latest version Ubuntu 16.04

Post by Oma »

Hi Bernd,
my only available V16.04 is Lubuntu at the moment so i can't test it, but maybe it has to do with this ...
http://askubuntu.com/questions/762137/a ... m-menu-bar

Regards, Charly
PureBasic 5.4-5.7, Linux: (X/L/K)Ubuntus+Mint - Windows XP (32Bit)
PureBasic Linux-API-Library & Viewer: http://www.chabba.de
infratec
Always Here
Always Here
Posts: 6873
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: PB 5.50 x64 and latest version Ubuntu 16.04

Post by infratec »

I don't use 2D, only 'normal' PB code :mrgreen:

It looks like that Ubuntu 16.04 is buggy.
Unfortunately the restart of the panel service does not solve the problem.

But since many programs shows this behaviour, I think they'll fix it soon.

Bernd
Post Reply