set the text of btn works for me. I've never used 'put into' however.
perhaps you have to load the entire menu text in a variable , insert or rewrite each line and then set the text of the button to it.

I assemble a complete menu listing on the fly on mousedown, then set the text of the button to it. This all happens before menupick. This guarantees refreshing just in time.

This definition of lock menus in the docs seems to say you can't change the menubars when they are locked ??? See what happens when you take that line out.

"Sets the lockMenus property to true, preventing the menu bar from being updated when the controls for the menu bar are changed."


this seems to be quite different than LOCK SCREEN.




Hi folks,

I'm trying to create some kind of dynamic menubar, but this does not work as exspected :-/

This is my (test) script in the mainstack, which does work in general, but the actual menubar does not update!
The substacks do not have any scripts

on resumestack
  lock menus
  put the target & CR & the owner of the target
  put the short name of the owner of the target into zielstack
set the label of btn "idappmenu" of grp "mbar2" of cd 1 of stack "mbar" to zielstack
  switch zielstack
  case "menutest2"
put "menutest2 item1" & CR & "menutest2 item2" into btn "idappmenu" of cd 1 of stack "mbar"
    show btn "idappmenu" of grp "mbar2" of cd 1 of stack "mbar"
    break
  case "menutest3"
put "menutest3 item1" & CR & "menutest3 item2" & CR & "menutest3 item3" into btn "idappmenu" of cd 1 of stack "mbar"
    show btn "idappmenu" of grp "mbar2" of cd 1 of stack "mbar"
    break
  case "menutest1" ## Mainstack
    hide btn "idappmenu" of grp "mbar2" of cd 1 of stack "mbar"
    ## I only want this extra menu in the substacks!
    break
  end switch
  unlock menus
end resumestack



--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -


_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to