BUG: DhBulletedList.setBackColor() Does Not Color the BulletsID: Q197570
|
When you use DhBulletedList.setBackColor() in an ordered list, DhBulletedList.setBackColor() does not set the background color of the bullets.
Internet Explorer does not color bullets when the <OL> 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:
<OL style="BACKGROUND-COLOR: #0000ff; COLOR: #ff0000" type=A>
<LI>Item 1</LI>
<LI>Item 2</LI>
</OL>
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
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);
}
}
<HTML>
<BODY>
<hr>
<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>
<!-- Insert HTML here -->
</BODY>
</HTML>
For the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java,
please see the following pages on the Microsoft Technical Support site:
http://support.microsoft.com/support/visualj/
http://support.microsoft.com/support/java/
© Microsoft Corporation 1998, All Rights Reserved.
Contributions by Derek Jamison, Microsoft Corporation
Additional query words:
Keywords : kbJava kbVJ600bug kbInetDev kbwfchtml
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: April 8, 1999