Re: How to repaint widgets??
- From: learfox furry ao net
- To: Kula <kula netstock net>
- Cc: "gtk-app-devel-list gnome org" <gtk-app-devel-list gnome org>
- Subject: Re: How to repaint widgets??
- Date: Thu, 14 Dec 2000 14:34:46 -0800 (PST)
Help!!!
I've tried to write a news program with Gtk.
And I use gtk_button to simulate the hyperlink text("parse uline", and
set button relief to "none").
I initialize some button and then fetch news title from MySQL database.
When button clicked, I must hide some button that doesn't need.
(Because under "sports", "health", "network",..., there are different
number of news)
Have you tried watching for an `expose_event'? Also you might need to put
it in a event_box and watch for an expose_event there.
When you recieve an expose_event, I usually use gtk_widget_queue_draw() to
redraw the widget (gtk_widget_draw() dosen't seem to work sometimse but
try it still).
--
Sincerely, ,"-_ \|/
-Capt. Taura M. , O=__ --X--
..__ ,_JNMNNEO=_ /|\
OMNOUMmnne. {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'.
EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " .
NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ .
http://furry.ao.net/~learfox/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]