gnope php gtk gui gnope.org  

GtkViewport color?

 
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners
View previous topic :: View next topic  
Author Message
goughy000



Joined: 30 Nov 2006
Posts: 1
Location: Wolverhampton, UK

PostPosted: Thu Nov 30, 2006 8:24 pm    Post subject: GtkViewport color? Reply with quote

is it possible to change the colour of this gtkviewport?

screenshot: http://img257.imageshack.us/img257/4682/bubbleimscreenshotoq5.png



Code:
         // create scroll window for contacts
         $contactviewbox = new GtkVBox();
         $contactviewbox->pack_start(new GtkLabel("bla\nbla\nbla\nbla\nbla\nbla\nbla\nbla\nbla\nbla\nbla\nbla\nbla\nbla\nbla\nb\nb\nb\nb\nb\nb\nb\nb\nb\nb\nb\nb\nb\nb\nb\nb\nb\n", false));

         $contactviewport = new GtkViewport();
         $contactviewport->add($contactviewbox);
         $contactviewport->set_shadow_type(0);

         $contactscroller = new GtkScrolledWindow();
         $contactscroller->set_border_width(0);
         $contactscroller->add($contactviewport);

         // Create box for the output to go in
         $vbox2 = new GtkVBox();
         $vbox2->pack_start($titlebar, false, false, 40);
         $vbox2->pack_end($contactscroller);


also the text align? or is this because i'm using gtklabel?

suggestions?

thankyou loads!


PS first post Very Happy

EDIT: changed link to image
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.