Microsoft KB Archive/197570

= BUG: DhBulletedList.setBackColor Does Not Color the Bullets =

Article ID: 197570

Article Last Modified on 6/14/2006

-

APPLIES TO


 * Microsoft Visual J++ 6.0 Standard Edition

-



This article was previously published under Q197570



SYMPTOMS
When you use DhBulletedList.setBackColor in an ordered list, DhBulletedList.setBackColor does not set the background color of the bullets.



CAUSE
Internet Explorer does not color bullets when the  tag has a background- color style set. For example, the following HTML fragment displays "A" and "B" with red text on a white background, and Item 1 and Item 2 appear as red text on blue background:

 Item 1 Item 2 



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce Behavior
 In Visual J++, select New Project from the File menu. In the New Project dialog box, click the New tab.</li> In the Visual J++ Projects tree, click Web Pages.</li> Click Code-Behind HTML.</li> Click Open to create the project.</li>  Modify Class1.java as follows: import com.ms.wfc.html.*; import com.ms.wfc.core.*; import com.ms.wfc.ui.*; public class Class1 extends DhDocument {  public Class1 {     initForm; }  private void initForm {  }   protected void onDocumentLoad(Object sender, Event e)   { DhBulletedList list = new DhBulletedList(DhListType.LARGE_LETTER); list.addItem(new DhText("Item 1")); list.addItem(new DhText("Item 2")); list.setBackColor(Color.BLUE); list.setForeColor(Color.RED); add(list); } }                       </li>  Modify page1.html as follows: <HTML> <BODY> <OBJECT classid="java:com.ms.wfc.html.DhModule" height=0 width=0 ... VIEWASTEXT> <PARAM NAME=__CODECLASS VALUE=Class1> <PARAM NAME=CABBASE VALUE=Project1.CAB> </OBJECT>

</BODY> </HTML> </li> Run the project.</li></ol>

RESULT: You will get the following web page:

A. Item 1

B. Item 2

Where "A" and "B" appear as red text on a white background, and Item 1 and Item 2 appear as red text on a blue background.

<div class="references_section">