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: Erik Arvidsson Date: July 24, 2002

1) This is not a bug in my opinion. There is one other possible work around and that is to remove the menu from the parent menu and then use it as a context menu.

2) I should probably add setChecked and getChecked methods to the CheckBoxMenuItem and RadioButtonMenuItem.

erik

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