| View previous topic :: View next topic |
| Author |
Message |
rajuvk
Joined: 02 May 2006 Posts: 10 Location: Kerala, India
|
Posted: Fri Jun 02, 2006 9:07 am Post subject: Gridlines in Listview |
|
|
Is there a way to add grid lines / cell borders for the GtkTreeView /Liststore, so that it has a spreadsheet like look ?. Still better is there a widget that makes spreadsheet like editing possible ?
Raju |
|
| Back to top |
|
 |
scott
Joined: 16 Feb 2006 Posts: 35
|
Posted: Fri Jun 02, 2006 2:16 pm Post subject: |
|
|
Hi Raju,
Unfortunately, I think the answer to both of your questions is no. At least not in PHP-GTK 2. It looks like there may be a Gtk+ extension out there called GtkSheet but it has not been ported to PHP-GTK 2 yet.
Sorry. |
|
| Back to top |
|
 |
ron_t
Joined: 11 Dec 2005 Posts: 78 Location: Gatineau, Quebec
|
Posted: Sat Jun 03, 2006 2:17 pm Post subject: Re: Gridlines in Listview |
|
|
| rajuvk wrote: | Is there a way to add grid lines / cell borders for the GtkTreeView /Liststore, so that it has a spreadsheet like look ?. Still better is there a widget that makes spreadsheet like editing possible ?
Raju |
Please define what you mean by "spreadsheet-like editing." If you mean simply clicking in a cell and typing, that's available using the "editable" flag.
-Ron T. |
|
| Back to top |
|
 |
rajuvk
Joined: 02 May 2006 Posts: 10 Location: Kerala, India
|
Posted: Mon Jun 05, 2006 8:12 am Post subject: Re: Gridlines in Listview |
|
|
| ron_t wrote: | | rajuvk wrote: | Is there a way to add grid lines / cell borders for the GtkTreeView /Liststore, so that it has a spreadsheet like look ?. Still better is there a widget that makes spreadsheet like editing possible ?
Raju |
Please define what you mean by "spreadsheet-like editing." If you mean simply clicking in a cell and typing, that's available using the "editable" flag.
-Ron T. |
My priority to get a grid like view for the displayed list. Currently what I am getting is a white page background. This may either be a grid like lay out or the cells with borders. (Finally it must look like a spread sheet or what we must get when we use border =1, in HTML table. Current it look likes border =0 in HTML table )
Raju |
|
| Back to top |
|
 |
ron_t
Joined: 11 Dec 2005 Posts: 78 Location: Gatineau, Quebec
|
Posted: Mon Jun 05, 2006 1:17 pm Post subject: Re: Gridlines in Listview |
|
|
| rajuvk wrote: | | ron_t wrote: | | rajuvk wrote: | Is there a way to add grid lines / cell borders for the GtkTreeView /Liststore, so that it has a spreadsheet like look ?. Still better is there a widget that makes spreadsheet like editing possible ?
Raju |
Please define what you mean by "spreadsheet-like editing." If you mean simply clicking in a cell and typing, that's available using the "editable" flag.
-Ron T. |
My priority to get a grid like view for the displayed list. Currently what I am getting is a white page background. This may either be a grid like lay out or the cells with borders. (Finally it must look like a spread sheet or what we must get when we use border =1, in HTML table. Current it look likes border =0 in HTML table )
Raju |
Okay, you had already talked about the display. Now, what do you mean by "spreadsheet-like editing?" Are you talking about clicking into a cell and editing it? Or is there some other type of spreadsheet-like editing that I'm unfamiliar with?
If all you want to do is "click and edit" set the "editable" flag.
-Ron T. |
|
| Back to top |
|
 |
rajuvk
Joined: 02 May 2006 Posts: 10 Location: Kerala, India
|
Posted: Tue Jun 06, 2006 9:26 am Post subject: Re: Gridlines in Listview |
|
|
| ron_t wrote: | | rajuvk wrote: | | ron_t wrote: | | rajuvk wrote: | Is there a way to add grid lines / cell borders for the GtkTreeView /Liststore, so that it has a spreadsheet like look ?. Still better is there a widget that makes spreadsheet like editing possible ?
Raju |
Please define what you mean by "spreadsheet-like editing." If you mean simply clicking in a cell and typing, that's available using the "editable" flag.
-Ron T. |
My priority to get a grid like view for the displayed list. Currently what I am getting is a white page background. This may either be a grid like lay out or the cells with borders. (Finally it must look like a spread sheet or what we must get when we use border =1, in HTML table. Current it look likes border =0 in HTML table )
Raju |
Okay, you had already talked about the display. Now, what do you mean by "spreadsheet-like editing?" Are you talking about clicking into a cell and editing it? Or is there some other type of spreadsheet-like editing that I'm unfamiliar with?
If all you want to do is "click and edit" set the "editable" flag.
-Ron T. |
By spreadsheet style editing I mean moving from one cell to another cell using the tab key and the arrow keys rather than clicking each cell using the mouse. All cells are by default editable. This feature is less important but the grid view is more important to me.
Raju |
|
| Back to top |
|
 |
ron_t
Joined: 11 Dec 2005 Posts: 78 Location: Gatineau, Quebec
|
Posted: Tue Jun 06, 2006 1:16 pm Post subject: Re: Gridlines in Listview |
|
|
| Quote: |
By spreadsheet style editing I mean moving from one cell to another cell using the tab key and the arrow keys rather than clicking each cell using the mouse. All cells are by default editable. This feature is less important but the grid view is more important to me.
Raju |
Okay, so you're talking about navigation rather than editing...
You might want to try a GtkTable with a GtkEntry in each cell of the table. Then set up the TAB key or the ARROW keys to move from cell to cell. I'm sure this can be done by connect()ing the "key-pressed-event" to each cell, but I've never done it.
Anyone else know something about this?
-Ron T.
[/quote] |
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Thu Jun 08, 2006 10:42 pm Post subject: |
|
|
| What I can say to this: Until GtkSheet isn't ported to php-gtk2, you have to simulate/make your own sheet widget by using a gtktable and lots of gtkentries. |
|
| Back to top |
|
 |
|