how to put a background pixmap in a clist
- From: cyberchris gmx at
- To: gtk-list gnome org
- Subject: how to put a background pixmap in a clist
- Date: Thu, 20 Feb 2003 09:30:31 +0100 (MET)
hi there...
can anybody tell my ho to put a background pixmap in an clist??
maybe it is not possible???
i have no problem to create a vbox, scroll window or an clist, but i'am not
able to put a background pixmap in an scroll list. i can put a background
pixmap in an window, it is also no problem..
here is my source for the scroll window and the clist:
//create
box--------------------------------------------------------------------
v_box=gtk_vbox_new(FALSE, 5);
gtk_container_set_border_width(GTK_CONTAINER(v_box), 5);
gtk_table_attach(GTK_TABLE (table), v_box, 1,65,1,95,
0,
0,
0, 0);
gtk_widget_set_uposition(v_box,12,144);
gtk_widget_set_usize(v_box,522,419);
gtk_widget_set_style (v_box, styleFeld[5]);
//create scroll
window-------------------------------------------------------
scroll_wdw=gtk_scrolled_window_new(NULL, NULL);
v_adj=gtk_scrolled_window_get_vadjustment(GTK_SCROLLED_WINDOW(scroll_wdw));
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll_wdw),
GTK_POLICY_AUTOMATIC, GTK_POLICY_NEVER);
gtk_widget_set_style (scroll_wdw, styleFeld[5]);
gtk_box_pack_start(GTK_BOX(v_box), scroll_wdw, TRUE, TRUE, 0);
//create
clist--------------------------------------------------------------
c_list = gtk_clist_new( 1 );
gtk_clist_set_shadow_type (GTK_CLIST(c_list), GTK_SHADOW_IN);
gtk_clist_set_column_width (GTK_CLIST(c_list), 0, 100);
gtk_widget_set_style (c_list, styleFeld[5]);
gtk_container_add(GTK_CONTAINER(scroll_wdw), c_list);
//show it
gtk_widget_show(v_box);
gtk_widget_show(scroll_wdw);
gtk_widget_show(c_list);
i hope you can help me!!!
tanks a lot
chris
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]