Menu invisible problem on my program

Linux specific forum
Shade
User
User
Posts: 10
Joined: Thu May 08, 2014 10:03 am

Menu invisible problem on my program

Post by Shade »

Hi everybody

I turn to you because I have a little problem
in developing my program I put a standard type menu (file, config help) but at compile time it does not appear on the window

I do not see why

Have you any idea?
I'm on Ubuntu 14.04 LTS and 5.22 LTS in PureBasic

Here is a snippet:

the hand below :

Code: Select all

IncludeFile "win_1.pbf"

Procedure Quit()
  
  End 
  
EndProcedure


OpenWindow_1()

Repeat
     Event = WaitWindowEvent()
     
     Select Event
     
       Case #PB_Event_Gadget
         Select EventGadget()
             
           Case BT_Quitter
             Quit()
                         
         EndSelect
         
       Case #PB_Event_Menu
         Select EventMenu()
             
           Case #Quitter
             Quit()
             
         EndSelect
     EndSelect
   Until Event = #PB_Event_CloseWindow
the window:

Code: Select all

;
; This code is automatically generated by the FormDesigner.
; Manual modification is possible to adjust existing commands, but anything else will be dropped when the code is compiled.
; Event procedures needs to be put in another source file.
;

Global Window_1

Enumeration FormGadget
  #BT_Quitter
EndEnumeration

Enumeration FormMenu
  #Quitter
  #Aide
EndEnumeration


Procedure OpenWindow_1(x = 0, y = 0, width = 150, height = 110)
  Window_1 = OpenWindow(#PB_Any, x, y, width, height, "", #PB_Window_SystemMenu)
  CreateMenu(0, WindowID(Window_1))
  MenuTitle("Fichier")
  MenuItem(#Quitter, "Quitter")
  MenuTitle("?")
  MenuItem(#Aide, "Aide")
  ButtonGadget(#BT_Quitter, 30, 30, 90, 30, "Quitter")
EndProcedure

Procedure Window_1_Events(event)
  Select event
    Case #PB_Event_CloseWindow
      ProcedureReturn #False

    Case #PB_Event_Menu
      Select EventMenu()
        Case #Quitter
        Case #Aide
      EndSelect

    Case #PB_Event_Gadget
      Select EventGadget()
      EndSelect
  EndSelect
  ProcedureReturn #True
EndProcedure

Here is a small screen:
Image

thank you in advance
User avatar
Kuron
Addict
Addict
Posts: 1626
Joined: Sat Oct 17, 2009 10:51 pm
Location: Pacific Northwest

Re: Menu invisible problem on my program

Post by Kuron »

Did you enable menus in the OS itself? IIRC, Ubuntu by default would hide menus and there was a setting you had to tweak.
Best wishes to the PB community. Thank you for the memories. ♥️
Shade
User
User
Posts: 10
Joined: Thu May 08, 2014 10:03 am

Re: Menu invisible problem on my program

Post by Shade »

Thank you for your answer

no I have not touched.
at the menu there are original
I looked at yours I know you
Fred
Administrator
Administrator
Posts: 18220
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Menu invisible problem on my program

Post by Fred »

Did you put the mouse cursor over the top bar in Ubuntu ? Menus are hidden until you put your cursor on the top bar in recent Ubuntu.
User avatar
Kukulkan
Addict
Addict
Posts: 1396
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

Re: Menu invisible problem on my program

Post by Kukulkan »

Ubuntu places the menus on top of the whole screen (not the window). Take a look there like Fred suggested.

Best,

Kukulkan
User avatar
TI-994A
Addict
Addict
Posts: 2740
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: Menu invisible problem on my program

Post by TI-994A »

Hi Shade. As Fred and the others have mentioned, it's located along the top of the screen. This image is pretty descriptive, from this article:

Image
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
Shade
User
User
Posts: 10
Joined: Thu May 08, 2014 10:03 am

Re: Menu invisible problem on my program

Post by Shade »

hi everybody
thank you for your reply and this right here is good at the top of the screen I think more nor yet its been over a year that I'm under ubuntu

thank you again to all is good devellopement
Post Reply