Hello, while testing this really cool feature:
with this test case ("Edit" icon):
I noticed that only in the ToolStripButton svgs scale with the font/controls resize, in Buttons and Menus they've got always the same 16px size.
Originally posted by Isomorphic
View Post
Code:
isc.IButton.create({ ID:"stretchButton", title: "Stretch Button", width: 150, icon: "Edit" }) isc.Menu.create({ ID: "menu", autoDraw: false, showShadow: true, shadowDepth: 10, data: [ {title: "New", keyTitle: "Ctrl+N", icon: "Edit"}, {title: "Open", keyTitle: "Ctrl+O", icon: "[SAMPLE]icons/16/folder_out.png"}, {isSeparator: true}, {title: "Save", keyTitle: "Ctrl+S", icon: "[SAMPLE]icons/16/disk_blue.png"}, {title: "Save As", icon: "[SAMPLE]icons/16/save_as.png"}, {isSeparator: true}, {title: "Recent Documents", icon: "[SAMPLE]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: "[SAMPLE]icons/16/export1.png", submenu: [ {title: "XML"}, {title: "CSV"}, {title: "Plain text"} ]}, {isSeparator: true}, {title: "Print", enabled: false, keyTitle: "Ctrl+P", icon: "[SAMPLE]icons/16/printer3.png"} ] }); var menuButton = isc.MenuButton.create({ ID: "menuButton", autoDraw: false, title: "File", width: 100, menu: menu }); isc.ToolStripButton.create({ ID: "printButton", icon: "Edit", title: "Print" }); isc.ToolStrip.create({ width: "100%", membersMargin:20, members: [menuButton, stretchButton, printButton] });
Comment