Add a style definition array. Specify the style name at index 0 of the array, and from index 1 onwards specify the property setting format of Menu Item Property in the array.
Example) c("styleA", "MDivType:IMAGE", "MTextColor:#FF0000")
Styles registered with AddStyle can be specified as "style:[style name]" in the Props argument of AddMenu / SetMenuProperty / SetIdProperty / SetClassPropert.
*Multiple styles can be specified by separating them with commas, such as "style:StyleA,StyleB".
Example) this.AddMenu("root", "Menu", "", F, "enable", "style:styleA");
Example) this.AddMenu("root", "Menu", "", F, "enable", "style:styleA,styleB");
Example) this.SetClassProperty("classA", "style:styleA");
|