Re: highlighting control labels
- From: Tristan Van Berkom <vantr touchtunes com>
- To: Russell Shaw <rjshaw netspace net au>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: highlighting control labels
- Date: Mon, 21 Jun 2004 10:00:23 -0400
Russell Shaw wrote:
Marisa DeMeglio wrote:
Hi,
I'm looking for a way to highlight a control's text label (if exists)
when that control receives focus. Is there a way to adjust the color
properties of a label at runtime (not via theme) ? If I can get it to
be highlighted then that will give some very basic JFW (jaws for
windows screen reader) support, since JFW pays attention to the MS
windows highlight color. Already works for reading menus via
gtk-wimp, now we need to extend it to the rest of the app, or as much
as possible. Any ideas would be much appreciated.
With access to the widgets text buffer, you can usually use pango
markup or attributes to change things like colour.
I may be mistaken, but I believe that you can achive this without
writing code, I think that this is called the widget's "PRELIGHT" state
and you can assign this in the gtkrc file like so:
style "some_kinda_font_style"
{
font_name = "Arial bold 14"
fg[NORMAL] = { 0.000, 0.000, 0.000 }
fg[ACTIVE] = { 0.063, 0.443, 1.000 }
fg[PRELIGHT] = { 0.000, 0.000, 0.000 }
fg[SELECTED] = { 0.000, 0.000, 0.000 }
fg[INSENSITIVE] = { 0.000, 0.000, 0.000 }
}
HTH,
-Tristan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]