Linux can't disable menuItems?
Peter Alcibiades
palcibiades-first at yahoo.co.uk
Sat Mar 21 23:24:14 EDT 2009
Bill,
I created a new main stack. On it placed a dropdown menu with the usual
three default choices, and a button with a script reading:
on mouseUp
disable menuItem 2 of menu "test"
end mouseUp
and, as for you, what comes up when I click is
Chunk: no such object
Object Button
Line disable menuItem 2 of menu "test"
Hint test
What works is
disable [or enable] menuItem 2 of button "test"
As does
disable [or enable] button "test"
Unlike you, I got the same thing from the message box.
Dunno, its not quite as the dictionary says, but maybe you can't refer to
them as menus for some reason? Was yours pulldown? Hard to see why it
should be any different in Linux though.
Debian Lenny, Rev 3.0
Peter
Bill Vlahos wrote:
>
> Would someone who is familiar with Linux do a test for me?
>
> I have a program built on a Mac for Linux and I get an error in Linux
> when I try to disable a menuItem. The error is Type: Chunk: no such
> object. The syntax looks correct and works on Mac and Windows builds.
>
> I then created a new stack in the IDE on Linux (Ubuntu 8.10) with
> menus and issued both the command in the message box (disable menuItem
> 1 of menu "Help") and in the script of a button. No error was
> generated but the menuItem was not disabled.
>
> If someone could either confirm this or tell me what I'm doing wrong I
> would appreciate it.
>
> Bill Vlahos
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
--
View this message in context: http://www.nabble.com/Linux-can%27t-disable-menuItems--tp22639341p22643035.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the use-livecode
mailing list