I am working on the styling of the menu and noticed a change from SC 7 to a recent nightly build.
I tried it on the demo (which is SC 7):
http://www.smartclient.com/#fullMenu
Checking the code with Firebug, when the input has the focus, the class change to "buttonFocused", what is right.
Trying the same code
in a recent nightly build, the class changed to "buttonOver" when it has the focus. Is this indeed intended behavior or should it be buttonFocused as it was with SC 7?
gr. Martin
I tried it on the demo (which is SC 7):
http://www.smartclient.com/#fullMenu
Checking the code with Firebug, when the input has the focus, the class change to "buttonFocused", what is right.
Trying the same code
Code:
isc.Menu.create({ ID: "menu", autoDraw: false, showShadow: true, shadowDepth: 10, data: [ {title: "New", keyTitle: "Ctrl+N", icon: "icons/16/document_plain_new.png"}, {title: "Open", keyTitle: "Ctrl+O", icon: "icons/16/folder_out.png"}, {isSeparator: true}, {title: "Save", keyTitle: "Ctrl+S", icon: "icons/16/disk_blue.png"}, {title: "Save As", icon: "icons/16/save_as.png"}, {isSeparator: true}, {title: "Recent Documents", icon: "icons/16/folder_document.png", submenu: [ {title: "data.xml", checked: true}, {title: "Component Guide.doc"}, {title: "SmartClient.doc", checked: true}, {title: "AJAX.doc"} ]}, {isSeparator: true}, {title: "Export as...", icon: "icons/16/export1.png", submenu: [ {title: "XML"}, {title: "CSV"}, {title: "Plain text"} ]}, {isSeparator: true}, {title: "Print", enabled: false, keyTitle: "Ctrl+P", icon: "icons/16/printer3.png"} ] }); isc.MenuButton.create({ ID: "menuButton", title: "File", width: 100, menu: menu });
gr. Martin
Comment