Ethereal-dev: Re: [Ethereal-dev] how to set color or bold to text in the protocol tree window

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Sun, 21 Aug 2005 02:51:21 -0700
Vladimir Zherdenovsky wrote:
Is it possible to set color or change font (bold) to text in the
protocol tree window?
Please see the attached picture for example
How I can do it in my dissector?

Given that dissectors run as part of Tethereal, they include no GUI code, and thus don't know about colors or fonts.

What is the purpose of setting the color? Is there some particular characteristic of a protocol tree item you want to indicate? If so, we could add an API to set a characteristic on a protocol tree item, and have that protocol item, when displayed in Ethereal, be displayed with, for example, a given font or color (either hardwired into Ethereal, or configurable by the user as a preference item).