View Single Post
  #18  
Unread 03-06-2008, 07:20 AM
pooka's Avatar
pooka pooka is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Antonia Bayle
Posts: 250
Default

I think I need help with both these points. LOL Thank you for all your help with this.

To add togglestartmenu to each entry, I've tried variations of the following, but apparently not the right one. Everything I've tried breaks it in one way or another. Is there a way to escape a semi-colon?
Code:
menuButton.OnPress=('togglestartmenu')##(' ')##(MenuEntry.menuaction)
I'm not sure I understand the second part either (see what happens when you let a non-programmer near code?). I am using OnShow in startmenu's root page, to force all the menuitems to update their variables. Then I have a conditional in each one to actual show/hide them if there exists a plugin for their #'d slot. The conditional (and the variable substitution) won't fire without the first part.

Quote:
Originally Posted by gm9 View Post
- No reason to put the "togglestartmenu" into every plugin, just add that to the startmenu xml itself.
- Your visible=false/true code can be discarded if you control the visibility of the menuitems from the OnShow of the startmenu's root page
Reply With Quote