Recent Questions Icon Pada Treeview Delphi
Q: I am working with tabs. Can you tell me why I would be receiving the following menu javascript error:
‘tabs[...].id’ is null or not an object
A: Try to set the following menu javascript parameter:
var bselectedSmItem=0;
Q: I want to buy your product today, but have a few questions:
How do I change the font style for java menu templates to 9pt Verdana bold, but leave the sub-menus 9pt Verdana normal? I understand there’s a "fontStyle" variable, but is there an "itemfontStyle"? How do I make the left hand padding greater for the menu? I’m using the XP Style 1 and the far left top menu item is running up against my left hand border. I want to add about 10px of spacing to the left of the menu. How do I make the options in a menu have equal spacing? For instance, if there are 5 items in the menu, how can each have 100% / 5?
A: You can use Individual Item styles to set specific parameters for eachitem or submenu.
1.
var fontStyle=["normal 9pt Verdana","normal 9pt Verdana"]; //for subitems
//style for the top items
var itemStyles = [
["itemHeight=21px","itemBackColor=#F2F3F2,#1665CB","fontStyle='bold 9pt Verdana','bold 9pt Verdana'"],
];
2., 4. You should specify itemPadding parameter in "px". You shouldadd "px" in your style for subitems:
var menuStyles = [
["menuBackColor=#F2F3F2","menuBorderWidth=0","itemSpacing=1","itemPadding=4px","smOrientation=undefined"],
];
Notice also that you can set multiple value for itemPadding parameter,for example:
itemPadding=4px 10px 4px 10px
top right bottom left
4. You should set the exact width for the java menu templates:
var menuWidth="500px";
and set width for the top items using Individual styles:
["itemWidth=100px","itemHeight=21px","itemBackColor=#F2F3F2,#1665CB","fontStyle='bold 9pt Verdana','bold 9pt Verdana'"],
Unfortunately it is not possible to specify item's width in '%' inIndividual styles. The following width parameters won't work.
var menuWidth="100%";
["itemWidth=20%","itemHeight=21px","itemBackColor=#F2F3F2,#1665CB","fontStyle='bold 9pt Verdana','bold 9pt Verdana'"],
Q: When I put any new link on my javascript scrolling menu info tree it goes as if I am placing as _blank when I have it leading to _self.
A: No you have:
var titemTarget="_blank";
And you haven't specified "_self" parameter to
["||Unilock Fireplace MODS","fireplace_unilock_mods.htm", "", "", "", "", "", "", "", ],
You should set
var titemTarget="_self";
or set "_self" parameter for each item individually:
["||Unilock Fireplace MODS","fireplace_unilock_mods.htm","", "", "", "_self", "", "", "", ],
Q: I am evaluating your menu product - very nice! However, I am relatively new to HTML, though a long time software developer, just not HTML!
My question - is it possible to have the menu be in a table cell and have the menu resize based on the cell width, if the cell width is specified in percent (%).
For example, if I have a table and I have a first column that is set at 15% of the width of the table, can I insert a menu in that cell and have it fill the cell?
A: Try to set 100% width for the menu.
var menuWidth="100%";