WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 menu4 sharing submenus and contextmenu; programmatically using radio button, Jason Bernstein, July 24, 2002
     Re:menu4 sharing submenus and contextmenu; programmatically using radio button , Tim Scarfe, July 31, 2002
     Re:menu4 sharing submenus and contextmenu; programmatically using radio button, Erik Arvidsson, July 24, 2002
         Re:menu4 sharing submenus and contextmenu; programmatically using radio button, Jason Bernstein, July 24, 2002
             Re:menu4 sharing submenus and contextmenu; programmatically using radio button, Erik Arvidsson, July 26, 2002

Subject: Re:menu4 sharing submenus and contextmenu; programmatically using radio button From: Tim Scarfe Date: July 31, 2002

Err?

The code you posted was Wrong, there is no bug in the code. You posted this:

var m= new Menu()
var sm = new Menu()
sm.add(new MenuItem('test'))
m.add('SubMenu', null, null, sm)

Should have been THIS:

var m= new Menu()
var sm = new Menu()
sm.add(new MenuItem('test'))
m.add(new MenuItem('SubMenu', null, null, sm));

I've seen that error a thousand times already, line 202 right? :)

-Tim Scarfe

From: Jason Bernstein
Sent: July 24, 2002
Subject: Re:menu4 sharing submenus and contextmenu; programmatically using radio button

I'm experiencing 2 issues (both with workarounds, but still issues)..

1) I have a submenu that is also being used as a context menu.
var m= new Menu()
var sm = new Menu()
sm.add(new MenuItem('test'))
m.add('SubMenu', null, null, sm)
If I do
m.show(event.screenX, event.screenY)
The menu appears, and the submenu appears.
If I do
sm.show(event.screenX, event.screenY)
I get an error that getDocument().parentWindow doesn''t exist.

Workaround - make 2 menus (and maintain state between them)

2) If the items in a menu are radiobutton menus, and I programatically change the checked property, the other items are not unchecking. It works properly if I click on the radioitem, but not when I programatically change it.

Workaround - Uncheck them individually while checking the correct one.

Thanks!

-jas





Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX