can i put a pixmap in the background of a scroll window ??



sorry, i don't know if i'm right there.please forgive me if i'm wrong
here.but if i wrong please tell me a e-mail adresse were i can tell my
question.

i have got a question about develop with gtk.

i want to create a scroll window. this is ok, but i also want to put a
pixmap in the "background" of the scroll window. i don't know what i have to
do.
so i hope you can help me. this is the code i have:


///box fuer scrollfenster und clist erzeugen
  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]);
  gtk_widget_show(v_box);

  //erzeuge das scrollfenster
  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_ALWAYS);
                                  GTK_POLICY_AUTOMATIC, GTK_POLICY_NEVER);
  gtk_box_pack_start(GTK_BOX(v_box), scroll_wdw, TRUE, TRUE, 0);
  gtk_widget_set_style (scroll_wdw, styleFeld[5]);
  gtk_widget_show(scroll_wdw);
  
   //erzeuge eine 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_clist_set_pixmap(GTK_CLIST(c_list),5,20,gdk_pixmap,NULL );
  
  gtk_widget_set_style (c_list, styleFeld[5]);
  gtk_container_add(GTK_CONTAINER(scroll_wdw), c_list);
  gtk_widget_show(c_list);
  //scrollfenster ende

 //logo im scroll
  /*
  p_style=gtk_widget_get_style(table);
  gdk_pixmap=gdk_pixmap_create_from_xpm(window->window,&pix_mask,
						   &p_style->bg[GTK_STATE_NORMAL],logo_name);
  pix_wdw=gtk_pixmap_new(gdk_pixmap,pix_mask);
  
  gtk_table_attach(GTK_TABLE (table), pix_wdw, 20,60,50,60,
    				GTK_FILL | GTK_EXPAND,
    				GTK_FILL | GTK_EXPAND,
    				0, 0);
  gtk_widget_show(pix_wdw);
  */
  //logo ende




thank you

chris

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]