[gtk-list] Re: Some questions from a newbie
- From: br0ke shells clipboard com (Erik Greenwald)
- To: gtk-list redhat com
- Subject: [gtk-list] Re: Some questions from a newbie
- Date: Tue, 11 Aug 1998 17:35:26 -0700 (PDT)
1) I would like to know how to change background color of a text widget.
GdkColor *black;
black->red=0;
black->green=0;
black->blue=0;
gdk_window_set_background(GTK_TEXT(text)->text_area,black);
2)changing a widget cursor is an easy job,
restoring previous cursor dictates to know it.
How know wich is the widget cursor before setting a n
have a "last cursor" variable. when you change it, set the last cursor variable to the old one, then switch it. to change back, call up the last cursor one :)
#3 i can't help with, sorry
-Erik <br0ke@shells.clipboard.com> http://shells.clipboard.com/~br0ke/bmud
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]