It is currently Tue Dec 11, 2018 12:22 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Menu location ...
PostPosted: Thu Jun 07, 2018 12:44 pm 
Offline
User
User

Joined: Fri Jun 04, 2010 9:29 pm
Posts: 42
Location: Sunny Spain
I've noticed that in Ubuntu 16 my app's main menu is located on the desktop's main menu (like macOS) but, in Ubuntu 18 it's on the app itself (like Windows).

No doubt just more stupid Linux/newbie questions but ...

Can I code to position the app's menu in the desktop's bar when using Ubuntu 18?
Can I program the location of the app's menu - desktop or app?
If not, can I determine (programmatically) where the menu is located ... and also, if its in the app, discover its height so that I can resize the app appropriately?

TIA
Dave


Top
 Profile  
Reply with quote  
 Post subject: Re: Menu location ...
PostPosted: Thu Jun 07, 2018 2:32 pm 
Offline
Always Here
Always Here

Joined: Mon Sep 22, 2003 6:45 pm
Posts: 7439
Location: Norway
This depends on the desktop environment. Try MenuHeight(), it should return 0 when the menu isn't inside the the application window.


Top
 Profile  
Reply with quote  
 Post subject: Re: Menu location ...
PostPosted: Fri Jun 08, 2018 2:01 pm 
Offline
User
User

Joined: Fri Jun 04, 2010 9:29 pm
Posts: 42
Location: Sunny Spain
Trond wrote:
This depends on the desktop environment. Try MenuHeight(), it should return 0 when the menu isn't inside the the application window.


Thanks for that. I read about the MenuHeight() function in the PB help-file ...

"Linux & MacOS X: This command will always returns 0, as the menu bar isn't part of the window (it is always located on the main bar at the very top of the screen). Therefore MenuHeight() can be used seamlessly on every OS to adjust the window size depending on the actual menu height."

... and believed it! :oops: It may be true of MacOS but not necessarily true of all flavours of Linux.
Now we know better.

Problem sorted now so thanks again,
Dave


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye