Re: (no subject)



On Tue, 2005-04-19 at 15:59 +0800, lijian wrote:
Hello,I am new to learn gtk.
I have write a very simple program,the following is the source code:
---------------------------------------------------------------------
      hscroll=gtk_hscrollbar_new(GTK_TEXT(text)->hadj);
          hscroll=gtk_hscrollbar_new(((GtkText *) text)->hadj);
      gtk_table_attach(GTK_TABLE(table),hscroll,0,1,1,2,GTK_EXPAND|
GTK_FILL|GTK_SHRINK,GTK_FILL,0,0);
      gtk_widget_show(hscroll);

      vscroll=gtk_vscrollbar_new(GTK_TEXT(text)->vadj);
          vscroll=gtk_vscrollbar_new(((GtkText *) text)->vadj);
      gtk_table_attach(GTK_TABLE(table),vscroll,1,2,0,1,GTK_FILL,GTK_SHRINK|GTK_FILL|GTK_EXPAND,0,0);
      gtk_widget_show(vscroll);





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