Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Change of style classname from SC 7 to recent nightly

    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

    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
    });
    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

    #2
    This is most likely a skinning issue, dependent on which skin you're using.
    For all Buttons / StatefulCanvas subclasses, focused widgets will make use of the "over" style if showFocusedAsOver is true.

    Comment


      #3
      Thanks for the reply, indeed setting this resulted in the previous/desired behavior:
      showFocused: true
      showFocusedAsOver: true

      So solved!

      gr. Martin

      Comment

      Working...
      X