DHTML Menu Builder [DynAPI 1.1]
<developers_edition>
Saturday April 12, 2008

 

 

WARNING: The information on this documentation will change as the development on this version of DHTML Menu Builder progresses.
It is VERY important that you always refer to the information provided in this document prior to testing new versions of the DynAPI code.


Setting Styles Functions

void dmbAPI_setGroupStyle(Group, BorderColor, BorderSize, BorderStyle, MarginH, MarginV)


Description

Sets the style of a group.

Code sample
dmbAPI_setGroupStyle("grp001", "#000000", 1, "solid", 2, 2);
This sample demonstrates how to change the style of a group.
In this sample the group whose name is "grp001" will be configured so its border is a black solid line of 1 pixel in width and its internal margins are set to 2 pixels both vertically and horizontally.

Parameters

Group (string)The name of the group whose style will be changed.

BorderColor (string) The color of the group's border.

BorderSize (integer) Size of the group's border

BorderStyle (string) Style of the border. The possible values are:
  • none
  • dotted
  • dashed
  • solid
  • double
  • groove
  • ridge
  • inset
  • window-inset
  • outset

Note that not all styles are supported or rendered equally by all browsers.


MarginH (integer) Internal horizontal margin of the group.
This value is the distance between the leftmost border of the group and the leftmost border of the first command.

MarginV (integer) Internal vertical margin of the group.
This value is the distance between the topmost border of the group and the topmost border of the first command.