Page 1 of 1

(False Alert) SetMenuItemState Working and Not working

Posted: Thu Mar 01, 2012 8:56 pm
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

Re: SetMenuItemState Working and Not working

Posted: Fri Mar 02, 2012 1:10 am
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.

Re: SetMenuItemState Working and Not working

Posted: Fri Mar 02, 2012 3:02 am
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

Re: SetMenuItemState Working and Not working

Posted: Fri Mar 02, 2012 3:20 am
by idle
don't see a checkbox on ubuntu 11.10 either

Re: SetMenuItemState Working and Not working

Posted: Fri Mar 02, 2012 7:52 am
by ts-soft
Image
Image
No problems here

Re: SetMenuItemState Working and Not working

Posted: Fri Mar 02, 2012 10:09 am
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...

Re: SetMenuItemState Working and Not working

Posted: Fri Mar 02, 2012 2:22 pm
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