Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Tooltips for MenuItem and use arrow key to navigate MenuButton

$
0
0
1. v83p_2014-01-17

2. Firefox 12.

Question:
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"}
    ]
});

isc.MenuButton.create({
    ID: "menuButton",
    title: "File",
    width: 100,
    menu: menu
});

Is there any way to add tooltip to the menuItem New and Open? I have tried showHover and HoverHtml but they dont work.

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

isc.HStack.create({
    ID:"starsLayout",
    top:50, membersMargin:10, layoutMargin:10, showEdges:true,
    animateMembers:true,
    members:[
        isc.MenuButton.create({
    ID: "menuButton1",
    title: "File1",
    width: 100,
menu: menu

}),
      isc.MenuButton.create({
    ID: "menuButton2",
    title: "File2",
    width: 100,
menu: menu
})
    ]
})

If we have focus on menuButton2, is there anyway to press the left arrow key to navigate to the menuButton1?

Viewing all articles
Browse latest Browse all 4756

Trending Articles