It is currently Tue May 21, 2013 8:43 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: (False Alert) SetMenuItemState Working and Not working
PostPosted: Thu Mar 01, 2012 8:56 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Oct 22, 2003 2:51 am
Posts: 734
Location: Canada
Hello everyone,

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

Code:
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.

Top
 Profile  
 
 Post subject: Re: SetMenuItemState Working and Not working
PostPosted: Fri Mar 02, 2012 1:10 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Mar 24, 2011 12:40 am
Posts: 155
Location: Iowa, USA
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.


Top
 Profile  
 
 Post subject: Re: SetMenuItemState Working and Not working
PostPosted: Fri Mar 02, 2012 3:02 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Oct 22, 2003 2:51 am
Posts: 734
Location: Canada
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


Top
 Profile  
 
 Post subject: Re: SetMenuItemState Working and Not working
PostPosted: Fri Mar 02, 2012 3:20 am 
Offline
Addict
Addict
User avatar

Joined: Fri Sep 21, 2007 5:52 am
Posts: 2485
Location: New Zealand
don't see a checkbox on ubuntu 11.10 either


Top
 Profile  
 
 Post subject: Re: SetMenuItemState Working and Not working
PostPosted: Fri Mar 02, 2012 7:52 am 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 4715
Location: Berlin - Germany
Image
Image
No problems here

_________________
PureBasic 5.11 | Windows 7 SP1 (x64) | Linux Mint 14 (x64) | RealSource

The use of EnableExplicit is free of charge and avoids errors.


Top
 Profile  
 
 Post subject: Re: SetMenuItemState Working and Not working
PostPosted: Fri Mar 02, 2012 10:09 am 
Offline
Addict
Addict

Joined: Sat Oct 17, 2009 10:51 pm
Posts: 919
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...

_________________
If you are new to PB you should check out the CodeArchiv. It has examples for almost everything you would want to do in PB.


Top
 Profile  
 
 Post subject: Re: SetMenuItemState Working and Not working
PostPosted: Fri Mar 02, 2012 2:22 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Oct 22, 2003 2:51 am
Posts: 734
Location: Canada
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


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 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