(False Alert) SetMenuItemState Working and Not working

Linux specific forum
User avatar
Guimauve
Enthusiast
Enthusiast
Posts: 742
Joined: Wed Oct 22, 2003 2:51 am
Location: Canada

(False Alert) SetMenuItemState Working and Not working

Post by Guimauve »

Hello everyone,

Something I don't understand, the following code is taken from the help file :

Code: Select all

If OpenWindow(0, 200, 200, 200, 100, "Exemple SetMenuItemState")
  If CreateMenu(0, WindowID(0))
    MenuTitle("Project")
    MenuItem(1, "Changed")
    SetMenuItemState(0,1,1)    ; Coche l'élément 1 du menu.
  EndIf
  Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf
Believe it or not, on my notebook Acer Aspire 5534 running under LinuxMint 12 x64 + Gnome-Shell this example work fine, I see the check in the menu just in front of the text. But on my PC also running under LinuxMint 12 x64 + Gnome-Shell, it not work at all, not check in front of the text.

Beside the graphic driver problems, any more ideas to help figuring out what is going on ?

Thanks beforehand and best regards.
Guimauve
Last edited by Guimauve on Fri Mar 02, 2012 2:23 pm, edited 1 time in total.
User avatar
BasicallyPure
Enthusiast
Enthusiast
Posts: 539
Joined: Thu Mar 24, 2011 12:40 am
Location: Iowa, USA

Re: SetMenuItemState Working and Not working

Post by BasicallyPure »

I'm using Linux Ubuntu 10.04.
I does not work for me, no check mark.

I had noticed this before that it works fine with Windows but not with Linux.
It is strange that it works for you on your notebook.

B.P.
BasicallyPure
Until you know everything you know nothing, all you have is what you believe.
User avatar
Guimauve
Enthusiast
Enthusiast
Posts: 742
Joined: Wed Oct 22, 2003 2:51 am
Location: Canada

Re: SetMenuItemState Working and Not working

Post by Guimauve »

Hello everyone,

I have re-checked on my notebook and it work ! On my notebook I use the Gallium driver V0.4 but on my main computer I use the NVIDIA driver for Linux. If this is the problem, maybe Fred and/or Freak can't do anything about it. This bug is in GTK 2.0 library.

Anyone else ?

@BasicallyPure : Thanks for your test.

Best regards
Guimauve
User avatar
idle
Always Here
Always Here
Posts: 6026
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: SetMenuItemState Working and Not working

Post by idle »

don't see a checkbox on ubuntu 11.10 either
Windows 11, Manjaro, Raspberry Pi OS
Image
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: SetMenuItemState Working and Not working

Post by ts-soft »

Image
Image
No problems here
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
Kuron
Addict
Addict
Posts: 1626
Joined: Sat Oct 17, 2009 10:51 pm
Location: Pacific Northwest

Re: SetMenuItemState Working and Not working

Post by Kuron »

Doesn't the following apply?
Fred wrote:The problem with image menu is it's a global OS options, you can set it in the preferences of your OS. Don't ask me why such options exists...
Best wishes to the PB community. Thank you for the memories. ♥️
User avatar
Guimauve
Enthusiast
Enthusiast
Posts: 742
Joined: Wed Oct 22, 2003 2:51 am
Location: Canada

Re: SetMenuItemState Working and Not working

Post by Guimauve »

Kuron wrote:Doesn't the following apply?
Fred wrote:The problem with image menu is it's a global OS options, you can set it in the preferences of your OS. Don't ask me why such options exists...
Yes you are right ! In Gnome-Shell we just need to set this :
Image

Best regards
Guimauve
Post Reply