GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Fri Apr 18, 2014 3:48 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: I need help with treeviews, and paneviews
PostPosted: Mon Jan 14, 2013 9:54 pm 
Offline
Familiar Face

Joined: Mon Jan 14, 2013 9:30 pm
Posts: 5
I am working on an application in C with GTK3, in my app I have a layout like Rhythmbox, with a treeview on the left, on the right top 2 treeviews then right bottom 1 treeview, and they are all in paned views, so one big horrizontal paned view, with treeview on left, the right pane has a vertical paned view, in the top pane is another horizontal paned view with a treeview in each, then the bottom pane has a treeview. ALL of the treeviews are inside a scrolledwindow, so that the treeviews will scroll. Now the issue I'm having is I can't get anything to style correctly, the sizes are all jacked up, can anyone make a simple example of multiple treeviews in scrolled windows in paneviews like what I have? If need be I can post some of my code, I don't want to post too much because my app is too big right now to post the whole thing. I should note that when it comes to size I have everything default right now, I didn't set any sizes for anything except the main window, and I'm just not sure if I should be using size requests or what, when I've used glade in the past with python I never had this issue, but I'm trying to write my own GTK code this time. I've searched for tutorials for what I'm talking about, and I can't find anything, especially for C.


Top
 Profile  
 
 Post subject: Re: I need help with treeviews, and paneviews
PostPosted: Thu Jan 17, 2013 11:25 pm 
Offline

Joined: Wed Jan 16, 2013 11:42 pm
Posts: 3
Could you rephrase the question?
Your example seems overly detailed and repetious.


Take care

michael


Top
 Profile  
 
 Post subject: Re: I need help with treeviews, and paneviews
PostPosted: Fri Jan 18, 2013 6:34 pm 
Offline
Familiar Face

Joined: Mon Jan 14, 2013 9:30 pm
Posts: 5
michaelsdev wrote:
Could you rephrase the question?
Your example seems overly detailed and repetious.


Take care

michael


Ok, sorry about the confusing question, let me simplify it, I have a paneview, originally I just had a treeview in each pane, however they would not scroll, when too much data was put in the treeview it just grew with no scroll bars, so I put the treeviews into scrolledwindows and the scrolledwindows into the paneview, however, now there are scrollbars, but the treeviews are tiny, here's a screenshot:
Attachment:
Screenshot.png
Screenshot.png [ 15.7 KiB | Viewed 514 times ]


Top
 Profile  
 
 Post subject: Re: I need help with treeviews, and paneviews
PostPosted: Fri Jan 18, 2013 7:28 pm 
Offline
Familiar Face

Joined: Mon Jan 14, 2013 9:30 pm
Posts: 5
Well, it appears my issue seems to actually be in my grid layout, I had a grid layout in the main window to place everything, when I changed the grid layout to a box layout it fixed the issue, I just made it a box with a vertical orientation, and the menu bar I had to set to expand and fill to FALSE, (the reason it doesn't appear on my screenshot is Ubuntu's global menu bar).


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group