PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Dynamic Columns With GtkListStore (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Dynamic Columns With GtkListStore
#221
Kovu (User)
Junior Boarder
Posts: 23
graphgraph
User Offline Click here to see the profile of this user
Dynamic Columns With GtkListStore 6 Months, 1 Week ago Karma: 1  
I've sent this to kksou by e-mail and have been asked to post it on the forum. Thanks for working on the sample code, kksou!

I have a question. I'm currently experimenting
around with your sample codes for displaying and editing table
data (GtkTreeView) with GtkListStore. Technically - this works
all fine, and almost perfectly fits my needs... but on
GtkListStore you can't dynamically define columns - unless
there's a capability in the PHP syntax I didn't figure out until
now (-> which is almost impossible, since I'm coding PHP sites
and applications for years already :P [yet, not object oriented
and without GUI, therefore]).

So... my problem is - I want to handle my flat-DB files in a GUI
editor, and those always have a differing number of columns. Of
course I store that data in 2D arrays... and I wish I could
define the columns with a loop. Is there any way to do that with
GtkTreeView... or do you have a better way to work with tables
of which you never know the size?
 
  The administrator has disabled public write access.
#225
kksou (Admin)
Admin
Posts: 391
graph
User Online Now Click here to see the profile of this user
Re:Dynamic Columns With GtkListStore 6 Months ago Karma: 8  
Hi Kovu,

Here's a sample code to create a GtkLlistStore dynamically:

Sample Code 497: How to display a flat file database in treeview with dynamically created GtkListStore model - Part 1

Hope it helps.

Regards,
/kksou

p.s. for some reason, the link doesn't work. So please go to the home page and follow the links from there.
 
 
Last Edit: 2008/05/19 16:11 By kksou.
  The administrator has disabled public write access.
#312
Kovu (User)
Junior Boarder
Posts: 23
graphgraph
User Offline Click here to see the profile of this user
Re:Dynamic Columns With GtkListStore 5 Months ago Karma: 1  
Hey kksou,

as I promised: some screenshots of my X-Files 3volution editor :)







 
 
Last Edit: 2008/06/18 17:54 By Kovu.
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Blog - Forum - Privacy Policy - Contact Us
Copyright © 2006-2008. kksou.com. All Rights Reserved