[Gambas-user] TableView Row Select RMB

2015-10-16 Thread abbat81
How can I select a row in a Tableview using Right Mouse Button like Left Mouse Button? Thanks before -- View this message in context: http://gambas.8142.n7.nabble.com/TableView-Row-Select-RMB-tp54080.html Sent from the gambas-user mailing list archive at Nabble.com. --

Re: [Gambas-user] Tableview behaviour

2014-10-05 Thread Benoît Minisini
Le 04/10/2014 09:22, bill-lancaster a écrit : > The attached example has a tableview with values in column 0, click on one of > those values and it goes into column 1. Alternatively a new value may be > entered in column 1. > It all works fine but the return key causes unwanted data in column 1. >

[Gambas-user] Tableview behaviour

2014-10-04 Thread bill-lancaster
The attached example has a tableview with values in column 0, click on one of those values and it goes into column 1. Alternatively a new value may be entered in column 1. It all works fine but the return key causes unwanted data in column 1. Where am I going wrong? TableviewExample.gz

Re: [Gambas-user] TableView Column-Headers are transparent now

2014-06-10 Thread Benoît Minisini
Le 10/06/2014 17:20, Benoît Minisini a écrit : > Le 10/06/2014 16:13, Karl Reinl a écrit : >> Salut Benoît, >> >> TableView Column-Headers are transparent now >> As Test-project, you can use the MySQL-Examble. >> >> I attached 2 pic. >> > > They are not transparent. It's just the text that is not c

Re: [Gambas-user] TableView Column-Headers are transparent now

2014-06-10 Thread Benoît Minisini
Le 10/06/2014 16:13, Karl Reinl a écrit : > Salut Benoît, > > TableView Column-Headers are transparent now > As Test-project, you can use the MySQL-Examble. > > I attached 2 pic. > They are not transparent. It's just the text that is not clipped anymore... I will fix that. -- Benoît Minisini -

[Gambas-user] TableView Column-Headers are transparent now

2014-06-10 Thread Karl Reinl
Salut Benoît, TableView Column-Headers are transparent now As Test-project, you can use the MySQL-Examble. I attached 2 pic. [System] Gambas=3.5.90 (rev 6307) OperatingSystem=Linux Kernel=3.2.0-64-generic Architecture=x86 Distribution=Ubuntu 12.04.4 LTS Desktop=GNOME Theme=QPlastique Language

Re: [Gambas-user] TableView (or GridView) .Height = 100% Control.Count

2014-01-27 Thread Benoît Minisini
Le 27/01/2014 19:25, abbat81 a écrit : > Thank you, it works OK. :) > Beware that you must use GridView.ClientWidth and GridView.ClientHeight instead of GridView.Width and GridView.Height if you want to take the GridView border into account. Regards, -- Benoît Minisini --

Re: [Gambas-user] TableView (or GridView) .Height = 100% Control.Count

2014-01-27 Thread abbat81
Thank you, it works OK. :) -- View this message in context: http://gambas.8142.n7.nabble.com/TableView-or-GridView-Height-100-Control-Count-tp45372p45400.html Sent from the gambas-user mailing list archive at Nabble.com. -

Re: [Gambas-user] TableView (or GridView) .Height = 100% Control.Count

2014-01-26 Thread Fabien Bodard
Public Sub GridView1_Arrange() GridView1.Height = GridView1.Rows[GridView1.Rows.Max].y + GridView1.Rows[GridView1.Rows.Max].Height + 10 'Print GridView1.Rows[GridView1.Rows.Max].Y + GridView1.Rows[GridView1.Rows.Max].Height End 2014-01-26 Fabien Bodard : > Is this good for you ? : > > GridView1

Re: [Gambas-user] TableView (or GridView) .Height = 100% Control.Count

2014-01-26 Thread Fabien Bodard
Is this good for you ? : GridView1.Height = GridView1.Rows[GridView1.Rows.Max].y + GridView1.Rows[GridView1.Rows.Max].Height + 10 2014-01-26 abbat81 : > > > How to show all rows and to do not show white empty area if it is not > needed. > > >

Re: [Gambas-user] TableView (or GridView) .Height = 100% Control.Count

2014-01-26 Thread abbat81
How to show all rows and to do not show white empty area if it is not needed. -- View this message in context: http://gambas.8142.n7.nabble.com/TableView-or-GridView-Height-100-Control-Count-tp45372p45377.html Sent from the gambas-user ma

Re: [Gambas-user] TableView (or GridView) .Height = 100% Control.Count

2014-01-26 Thread Fabien Bodard
Do you want the 5 rows to take all the clientheight ? I'm don't really understand what you means and what you want. Can you send us a small project that illustrate the problem or at less screenshots. Le 26 janv. 2014 16:04, "abbat81" a écrit : > GridView & TableView > > I do not know how many ro

[Gambas-user] TableView (or GridView) .Height = 100% Control.Count

2014-01-26 Thread abbat81
GridView & TableView I do not know how many rows a control will has It can has a 5 or 15 rows. So, how to set contol.height to show all 15 rows and if there are 5 rows to do not show empty area without rows in a control. I can not calculate a pixels of one row because font size can be different

Re: [Gambas-user] TableView Column.Width quick adjust?

2014-01-20 Thread Rolf-Werner Eilert
Am 19.01.2014 23:19, schrieb Benoît Minisini: > Le 13/01/2014 12:14, Rolf-Werner Eilert a écrit : >> When I want to adapt the Column.Width of all Columns in a TableView, >> will I still have to build this into the Data event or iterate through >> the whole thing, or is there meanwhile a quicker w

Re: [Gambas-user] TableView Column.Width quick adjust?

2014-01-19 Thread Benoît Minisini
Le 13/01/2014 12:14, Rolf-Werner Eilert a écrit : > When I want to adapt the Column.Width of all Columns in a TableView, > will I still have to build this into the Data event or iterate through > the whole thing, or is there meanwhile a quicker way to programmatically > start the fast adaptation (t

[Gambas-user] TableView Column.Width quick adjust?

2014-01-13 Thread Rolf-Werner Eilert
When I want to adapt the Column.Width of all Columns in a TableView, will I still have to build this into the Data event or iterate through the whole thing, or is there meanwhile a quicker way to programmatically start the fast adaptation (the one which I get when double-clicking on the column

[Gambas-user] Tableview row does not show as selected

2013-09-20 Thread bill-lancaster
The solution is to rebuild a fresh project and the problem goes away! -- View this message in context: http://gambas.8142.n7.nabble.com/Tableview-row-does-not-show-as-selected-tp43269p43290.html Sent from the gambas-user mailing list archive at Nabble.com. -

[Gambas-user] Tableview row does not show as selected

2013-09-18 Thread bill-lancaster
gridview 'mode' is set to single but clicking on a row does not highlight the row. gdvIncoming_Click() produces:- gdvIncoming.Row = 6 ( or whatever row was clicked) gdvIncoming.Rows[gdvIncoming.Row].Selected = True also does not hightlight the row. Where am I going wrong? Distribution=Ubuntu 1

Re: [Gambas-user] Tableview combobox

2012-12-08 Thread bill-lancaster
In the tableview_Click() event, call tableview.Edit(sMySqlFieldTypes, True) if the cell is in the column where the drop down is wanted -- View this message in context: http://gambas.8142.n7.nabble.com/Tableview-combobox-tp40279p40282.html Sent from the gambas-user mailing list archive at

[Gambas-user] Tableview combobox

2012-12-08 Thread bill-lancaster
I know this is simple but. . . When editing a cell in a TableView how do I make a combobox/dropdown for a cell? Thanks -- View this message in context: http://gambas.8142.n7.nabble.com/Tableview-combobox-tp40279.html Sent from the gambas-user mailing list archive at Nabble.com. ---

Re: [Gambas-user] TableView doesn't edit anymore?

2012-11-12 Thread Benoît Minisini
Le 12/11/2012 07:54, Bruce a écrit : > It just doesn't edit at all??? > Rev 5315 > > All I get from the attached is: > FTableView.tvwMain_Click.33: > FTableView.tvwMain_Save.47: 0 2 > FTableView.tvwMain_Click.33: > > ??? > Bruce > > It should be fixed in revision #5317. Regards, -- Benoît Min

[Gambas-user] TableView doesn't edit anymore?

2012-11-11 Thread Bruce
It just doesn't edit at all??? Rev 5315 All I get from the attached is: FTableView.tvwMain_Click.33: FTableView.tvwMain_Save.47: 0 2 FTableView.tvwMain_Click.33: ??? Bruce tvweditfails-0.0.1.tar.gz Description: application/compressed-tar --

Re: [Gambas-user] TableView Data from database

2012-09-30 Thread rocko
You are so close Bruce! Actually I dont need to send data back to the database. Thats done with a DataBrowser that displays and updates the entire database. This is a separate entity that gets SOME data form the database IF the daysLeft field in the database is less than a certain amount, 20 days f

Re: [Gambas-user] TableView Data from database

2012-09-30 Thread rocko
Oh yes, but can I do an 'IF Then" that that limits the fields returned from the database? If (daysLeft < 21) Then sResult!DaysLeft = DataView1.Columns1.Daysleft And so on.. On 09/29/2012 03:47 AM, Benoît Minisini wrote: > Le 29/09/2012 05:11, rocko a écrit : >> Ok that makes a

Re: [Gambas-user] TableView Data from database

2012-09-29 Thread Benoît Minisini
Le 29/09/2012 05:11, rocko a écrit : > Ok that makes a little more sense. > But I have some questions. > > Do I have to use a TableView? > Originally I used DataView but that displays all > the fields in the database, I just want to use some > of the fields if certain conditions apply, like > if th

Re: [Gambas-user] TableView Data from database

2012-09-29 Thread Bruce
On Fri, 2012-09-28 at 20:11 -0700, rocko wrote: > Ok that makes a little more sense. > But I have some questions. > > Do I have to use a TableView? Well that depends on whether you want to have some sort of display of the data at all. If you just want to update the data, say on a daily basis, the

Re: [Gambas-user] TableView Data from database

2012-09-29 Thread Tobias Boege
On Thu, 27 Sep 2012, rocko wrote: > I'm using a Table view to view data from an SQLite database. > I would use a dataview but I only need to display some database fields > not all of them. > > This is the code I have so far: > Public Sub Form_Open() > > Dim sResult As Result > Dim id As Integer >

Re: [Gambas-user] TableView Data from database

2012-09-28 Thread rocko
Ok that makes a little more sense. But I have some questions. Do I have to use a TableView? Originally I used DataView but that displays all the fields in the database, I just want to use some of the fields if certain conditions apply, like if the 'Days Left' field is less than 20 days. Then if s

Re: [Gambas-user] TableView Data from database

2012-09-28 Thread Bruce
On Fri, 2012-09-28 at 19:27 -0700, rocko wrote: > Huh? > I'm sorry Bruce I'm not following. > I want the fields to update when the form opens. > Just the ID, Location and Days Left fields. > Unless a row is selected in the tableview, Tableview1.Row will be -1. (You can check that in the debugger.)

Re: [Gambas-user] TableView Data from database

2012-09-28 Thread rocko
Huh? I'm sorry Bruce I'm not following. I want the fields to update when the form opens. Just the ID, Location and Days Left fields. On 09/28/2012 07:17 PM, Bruce wrote: > On Fri, 2012-09-28 at 18:55 -0700, rocko wrote: >> I get a "Bad Row Index" error when I do that. >> >> >> On 09/28/2012 12:07

Re: [Gambas-user] TableView Data from database

2012-09-28 Thread Bruce
On Fri, 2012-09-28 at 18:55 -0700, rocko wrote: > I get a "Bad Row Index" error when I do that. > > > On 09/28/2012 12:07 AM, Алексей Беспалов wrote: > > It do that: > > > > sResult = DB.Edit("inventory", id = &1, ID) > > sResult!id = ID > > 'sResult!location = TableView1.Columns[1].

Re: [Gambas-user] TableView Data from database

2012-09-28 Thread rocko
I get a "Bad Row Index" error when I do that. On 09/28/2012 12:07 AM, Алексей Беспалов wrote: > It do that: > > sResult = DB.Edit("inventory", id = &1, ID) > sResult!id = ID > 'sResult!location = TableView1.Columns[1]. > * sResult!location = TableView1[TableView1.Row, 1].Text* > sResult.

Re: [Gambas-user] TableView Data from database

2012-09-28 Thread Алексей Беспалов
It do that: sResult = DB.Edit("inventory", id = &1, ID) sResult!id = ID 'sResult!location = TableView1.Columns[1]. * sResult!location = TableView1[TableView1.Row, 1].Text* sResult.Update 2012/9/28 rocko > I'm using a Table view to view data from an SQLite database. > I would use a datav

[Gambas-user] TableView Data from database

2012-09-27 Thread rocko
I'm using a Table view to view data from an SQLite database. I would use a dataview but I only need to display some database fields not all of them. This is the code I have so far: Public Sub Form_Open() Dim sResult As Result Dim id As Integer TableView1.Columns.Count = 3 TableView1.Rows.Cou

Re: [Gambas-user] TableView Lacking Alignment Function

2011-11-16 Thread Rolf-Werner Eilert
Am 16.11.2011 16:23, schrieb Randy Millner: > Hello Rolf, thanks for the reply, > I tried manually declaring padded whitespace. Example: > TableView1.Columns[7].Title = " Amount" > And the result was only one space being delivered to the final output: > " Amount" > What would be different i

Re: [Gambas-user] TableView Lacking Alignment Function

2011-11-16 Thread Randy Millner
Hello Rolf, thanks for the reply, I tried manually declaring padded whitespace. Example: TableView1.Columns[7].Title = " Amount" And the result was only one space being delivered to the final output: " Amount" What would be different if I wrote a function? On Tue, Nov 15, 2011 at 1:22 PM,

Re: [Gambas-user] Tableview Background

2011-06-08 Thread Shane Powell
On 09/06/11 10:34, Benoît Minisini wrote: >> On 09/06/11 08:32, Benoît Minisini wrote: hi Benoit im using gambas 3 3871 and im using qt-4 at design time when i set the background color only the part of the control that dosnt have the grid on it has

Re: [Gambas-user] Tableview Background

2011-06-08 Thread Benoît Minisini
> On 09/06/11 08:32, Benoît Minisini wrote: > >> hi Benoit > >> > >> im using gambas 3 3871 and im using qt-4 > >> > >> at design time when i set the background color only the part of > >> the control that dosnt have the grid on it has the changed color > > > > Do you have a s

Re: [Gambas-user] Tableview Background

2011-06-08 Thread Shane Powell
On 09/06/11 08:32, Benoît Minisini wrote: hi Benoit im using gambas 3 3871 and im using qt-4 at design time when i set the background color only the part of the control that dosnt have the grid on it has the changed color Do you have a screenshot? Can you make a little projec

Re: [Gambas-user] Tableview Background

2011-06-08 Thread Benoît Minisini
> > hi Benoit > im using gambas 3 3871 and im using qt-4 > at design time when i set the background color only the part of > the control that dosnt have the grid on it has the changed color > Do you have a screenshot? Can you make a little project that reproduces your problem?

Re: [Gambas-user] Tableview Background

2011-06-08 Thread Shane Powell
On 08/06/11 23:09, Benoît Minisini wrote: >> hi Group im trying to set the initial background colour of a tableview >> rows and columns all to a set colour >> is there a way to do this with out looping through all the rows and >> columns individually and setting it there >> thanks >>Sha

Re: [Gambas-user] Tableview Background

2011-06-08 Thread Benoît Minisini
> hi Group im trying to set the initial background colour of a tableview > rows and columns all to a set colour > is there a way to do this with out looping through all the rows and > columns individually and setting it there > thanks > Shane > > Setting the TableView Background proper

[Gambas-user] Tableview Background

2011-06-05 Thread Shane Powell
hi Group im trying to set the initial background colour of a tableview rows and columns all to a set colour is there a way to do this with out looping through all the rows and columns individually and setting it there thanks Shane --

Re: [Gambas-user] Tableview use of combobox problem

2011-04-07 Thread Bill-Lancaster
I wasn't using tableview properly - it's fine now -- View this message in context: http://old.nabble.com/Tableview-use-of-combobox-problem-tp31331585p31340031.html Sent from the gambas-user mailing list archive at Nabble.com.

[Gambas-user] Tableview use of combobox problem

2011-04-06 Thread Bill-Lancaster
I have a table view which has a list of values in column 0. I want to select from a range of items (sInstruments[]) in column 1 . This code:- IF tbvPerf.Column = 1 THEN tbvPerf.Edit(sInstruments, FALSE) works fine. But when another cell is selected the previous cell is goes blank. Where am I

Re: [Gambas-user] TableView issue

2010-09-05 Thread Benoît Minisini
> > BTW, an other strange effect, maybe from the same root case: > > Take the same sample but make all the columns editable (otherwise the > > first bug doesn't let you see the second :-) > > > > 1. When you start the app. then the whole table is visible. In this case > > - after clicking into a c

Re: [Gambas-user] TableView issue

2010-09-05 Thread Benoît Minisini
> Hello Benoit, > > Could you pls. tell me how to check the revision of Gambas. I just redo > every time the "svn update" in the install folder (it writes me out a > revision number, this is what I refer to) and after I recompile, reinstall > gambas. But later I don't know how to check the version

Re: [Gambas-user] TableView issue

2010-09-05 Thread Robert JUHASZ
Merci Charlie! Fine, it confirmed the revision I expected: -- juh...@juhasz-laptop:~/install/gambas/2.0$ svn info Path: . URL: https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0 R

Re: [Gambas-user] TableView issue

2010-09-05 Thread Charlie Reinl
Am Sonntag, den 05.09.2010, 15:15 +0200 schrieb Robert JUHASZ: > Hello Benoit, > > Could you pls. tell me how to check the revision of Gambas. I just redo > every time the "svn update" in the install folder (it writes me out a > revision number, this is what I refer to) and after I recompile, rein

Re: [Gambas-user] TableView issue

2010-09-05 Thread Robert JUHASZ
v email is sponsored by: > > Show off your parallel programming skills. > Enter the Intel(R) Threading Challenge 2010. > http://p.sf.net/sfu/intel-thread-sfd > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/

Re: [Gambas-user] TableView issue

2010-09-03 Thread Benoît Minisini
> Salut Benoit, > > I tested the last version with the different components: > > gb.qt: still the same problem (ComboBox is read-only) > gb.qtk: OK > gb.gui: OK > > I use gb.qt. > > Robi > I have just tested your with gb.qt and Gambas 2, and I don't have the problem anymore. Can you send me

Re: [Gambas-user] TableView issue

2010-09-02 Thread Fabien Bodard
al Message- > From: Benoît Minisini > Reply-to: mailing list for gambas users > > To: mailing list for gambas users > Subject: Re: [Gambas-user] TableView issue > Date: Wed, 1 Sep 2010 22:02:24 +0200 > > >> > > Benoit, >> > > >> > > I

Re: [Gambas-user] TableView issue

2010-09-02 Thread JUHASZ Robert
Subject: Re: [Gambas-user] TableView issue Date: Wed, 1 Sep 2010 22:02:24 +0200 > > > Benoit, > > > > > > I just updated to the 2.21 version, revision 3173. > > > Checking with the previously attached file gives the same behavior :-( > > > > > &g

Re: [Gambas-user] TableView issue

2010-09-01 Thread Benoît Minisini
> > > Benoit, > > > > > > I just updated to the 2.21 version, revision 3173. > > > Checking with the previously attached file gives the same behavior :-( > > > > > > Did I do something wrong with the update or the bug survived ? > > > > > > Robi > > > > Are you sure that you recompile things co

Re: [Gambas-user] TableView issue

2010-09-01 Thread Benoît Minisini
> > Benoit, > > > > I just updated to the 2.21 version, revision 3173. > > Checking with the previously attached file gives the same behavior :-( > > > > Did I do something wrong with the update or the bug survived ? > > > > Robi > > Are you sure that you recompile things correctly? I have test

Re: [Gambas-user] TableView issue

2010-09-01 Thread Benoît Minisini
> Benoit, > > I just updated to the 2.21 version, revision 3173. > Checking with the previously attached file gives the same behavior :-( > > Did I do something wrong with the update or the bug survived ? > > Robi > Are you sure that you recompile things correctly? I have tested with the exam

Re: [Gambas-user] TableView issue

2010-09-01 Thread JUHASZ Robert
: mailing list for gambas users Subject: Re: [Gambas-user] TableView issue Date: Mon, 30 Aug 2010 16:46:13 +0200 > > Hello List, > > > > I found a strange behavior of the tableview control. I use Gambas 2.20, > > qt, on ubuntu 10.04. > > > > I try to create an

Re: [Gambas-user] TableView issue

2010-08-30 Thread Benoît Minisini
> > Hello List, > > > > I found a strange behavior of the tableview control. I use Gambas 2.20, > > qt, on ubuntu 10.04. > > > > I try to create an editable table. > > As long as I use only text input, it works fine. > > As long as I use lists or text and list but with unprotected > > (readonly=f

Re: [Gambas-user] TableView issue

2010-08-30 Thread Benoît Minisini
> Hello List, > > I found a strange behavior of the tableview control. I use Gambas 2.20, qt, > on ubuntu 10.04. > > I try to create an editable table. > As long as I use only text input, it works fine. > As long as I use lists or text and list but with unprotected > (readonly=false, as by defaul

[Gambas-user] TableView issue

2010-08-29 Thread Robert JUHASZ
Hello List, I found a strange behavior of the tableview control. I use Gambas 2.20, qt, on ubuntu 10.04. I try to create an editable table. As long as I use only text input, it works fine. As long as I use lists or text and list but with unprotected (readonly=false, as by default) lists, it works

Re: [Gambas-user] TableView Header Names

2010-04-07 Thread Robert JUHASZ
TableViewName.Columns[columnIindex].Title or TableViewName.Columns[columnIndex].Text (does the same as far as I could see). Robi 2010/4/7 Keith Clark > How do I change the text that is displayed in the TableView Headers? > > Thanks (still learning!), > > Keith > > > > >

[Gambas-user] TableView Header Names

2010-04-07 Thread Keith Clark
How do I change the text that is displayed in the TableView Headers? Thanks (still learning!), Keith -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactive

[Gambas-user] TableView modification

2010-01-24 Thread Olivier Cruilles
Hi all, In a new project, I'm developing some Sqlite request and I use a TableView1 to display all the results of SQL requests. To be more flexible, I use the TableView1_ColumnClick(Column AS Integer) event to sort the clicked column. All this operation is ok for the moment and the TableView1

Re: [Gambas-user] Tableview question

2009-10-26 Thread Fabien Bodard
2009/10/24 Werner : > richard terry wrote: >> I've need to use the table view to allow user to edit/add new cells >> >> Despite reading Doc's and looking at the  examples in the IDe I'm no closer >> to >> getting the concept of how the thing works, so I wonder if anyone could >> explain its use in

Re: [Gambas-user] Tableview question

2009-10-26 Thread Werner
richard terry wrote: > I've need to use the table view to allow user to edit/add new cells > > Despite reading Doc's and looking at the examples in the IDe I'm no closer > to > getting the concept of how the thing works, so I wonder if anyone could > explain its use in simple terms and show me

Re: [Gambas-user] Tableview question

2009-10-25 Thread richard terry
thanks, I'll digest all the replies. Richard On Monday 26 October 2009 04:10:53 you wrote: > > With a form and a tableview > > I hope you understand more, in the _Save Event, you validate the > entered value and do what you want such as adding a new row > > ' Gambas class file > > > > > P

Re: [Gambas-user] Tableview question

2009-10-25 Thread Fabien Bodard
With a form and a tableview I hope you understand more, in the _Save Event, you validate the entered value and do what you want such as adding a new row ' Gambas class file PUBLIC SUB Form_Open() TableView1.Rows.Count = 3 TableView1.Columns.Count = 2 TableView1[0, 0].Text = "tic" Ta

Re: [Gambas-user] Tableview question

2009-10-25 Thread Fabien Bodard
on the _data event version or gridview mode ? 2009/10/24 richard terry : > I've need to use the table view to allow user to edit/add new cells > > Despite reading Doc's and looking at the  examples in the IDe I'm no closer to > getting the concept of how the thing works, so I wonder if anyone cou

Re: [Gambas-user] Tableview question

2009-10-25 Thread richard terry
On Sunday 25 October 2009 21:51:12 you wrote: > richard terry wrote: > > I've need to use the table view to allow user to edit/add new cells > > > > Despite reading Doc's and looking at the examples in the IDe I'm no > > closer to getting the concept of how the thing works, so I wonder if > > anyo

Re: [Gambas-user] Tableview question

2009-10-25 Thread Werner
richard terry wrote: > I've need to use the table view to allow user to edit/add new cells > > Despite reading Doc's and looking at the examples in the IDe I'm no closer > to > getting the concept of how the thing works, so I wonder if anyone could > explain its use in simple terms and show me

Re: [Gambas-user] Tableview question

2009-10-24 Thread Charlie Reinl
Am Sonntag, den 25.10.2009, 06:57 +1100 schrieb richard terry: > I've need to use the table view to allow user to edit/add new cells > > Despite reading Doc's and looking at the examples in the IDe I'm no closer > to > getting the concept of how the thing works, so I wonder if anyone could > e

[Gambas-user] Tableview question

2009-10-24 Thread richard terry
I've need to use the table view to allow user to edit/add new cells Despite reading Doc's and looking at the examples in the IDe I'm no closer to getting the concept of how the thing works, so I wonder if anyone could explain its use in simple terms and show me a simple sample of how to allow;

Re: [Gambas-user] tableview

2009-10-01 Thread nero
nero wrote: ok , I'm investigating the problem: - When tv is loaded all columns are 100 in size - When I doubleclick between two column the column are resized by the content and get various size - When I set tv.Columns.Width = "-1" or tv.Columns.Width = -1 all the columns get size 20. I think

Re: [Gambas-user] tableview

2009-09-30 Thread nero
Benoît Minisini wrote: > So setting the width of columns to "-1" should work as you expected, at > least with gb.qt. Strange... I'm using qt4 , i'm porting an app from gambas2/qt3/kde3 to gambas3/qt4/kde4 , I can't try with qt3 since I don't have kde3 installed . -- E' piu' logico sacri

Re: [Gambas-user] tableview

2009-09-30 Thread Benoît Minisini
> Benoît Minisini wrote: > > No, there is no way to do that. But if it does not work by code, it > > should not work with the mouse too. Strange... How do you fill the > > contents of the TableView? > > without the data event , i simply set value of any row. > So setting the width of columns to

Re: [Gambas-user] tableview

2009-09-30 Thread nero
Benoît Minisini wrote: > No, there is no way to do that. But if it does not work by code, it should > not work with the mouse too. Strange... How do you fill the contents of > the TableView? without the data event , i simply set value of any row. I will move to use data event but not immediately

Re: [Gambas-user] tableview

2009-09-29 Thread Benoît Minisini
> Benoît Minisini wrote: > > Try to put -1 in the TableView.Columns.Width property. If I remember, it > > does not work correctly if your data comes from the Data event. > > no , it don't work , it make all columns ~ 10 px . > > Isn't there a way to call the directly the mouse action ? > like cal

Re: [Gambas-user] tableview

2009-09-29 Thread nero
Benoît Minisini wrote: > Try to put -1 in the TableView.Columns.Width property. If I remember, it > does not work correctly if your data comes from the Data event. no , it don't work , it make all columns ~ 10 px . Isn't there a way to call the directly the mouse action ? like call Tableview_Cl

Re: [Gambas-user] tableview

2009-09-29 Thread Benoît Minisini
> Hi, > > when using a tableview in gambas3 if I doubleclick between two columns all > columns autoresize to best fit. > > How can I have the same by code without do nothink with mouse ? > > thank's, > marco. > Try to put -1 in the TableView.Columns.Width property. If I remember, it does not

[Gambas-user] tableview

2009-09-29 Thread nero
Hi, when using a tableview in gambas3 if I doubleclick between two columns all columns autoresize to best fit. How can I have the same by code without do nothink with mouse ? thank's, marco. -- E' Primavera. I sensi si risvegliano. Le giornate si allungano, e non solo quelle...

Re: [Gambas-user] tableview edit

2009-09-07 Thread Benoît Minisini
> The project is incomplete. It's a shop management project built in > Microsoft Office (Windows) and we're trying to make it in Linux(gambas) > and > Postgresql. We don't know much about gambas. > It's a form called 'pendentes' whith a tableview called 'subventas' apart > more controls (textbox,

Re: [Gambas-user] tableview edit

2009-09-07 Thread Tomas Costa rivas
The project is incomplete. It's a shop management project built in Microsoft Office (Windows) and we're trying to make it in Linux(gambas) and Postgresql. We don't know much about gambas. It's a form called 'pendentes' whith a tableview called 'subventas' apart more controls (textbox, buttons, ...)

Re: [Gambas-user] tableview edit

2009-09-07 Thread Benoît Minisini
> No. > Error.code=13 > Error.text="Null object" > All error message have a class name and a line number (in Error.Where). Please send your full project. -- Benoît -- Let Crystal Reports handle the reporting - Free Cr

Re: [Gambas-user] tableview edit

2009-09-07 Thread Tomas Costa rivas
No. Error.code=13 Error.text="Null object" 2009/9/7 Benoît Minisini > > Ok I change the sentence, like this: > > > > PUBLIC SUB mitabla_Change() > > DIM xArray AS String[] > > xArray = ["Proba1", "proba2", "proba3"] > > IF mitabla.Column = 0 THEN > > mitabla.Edit(xArray, TRUE) > > ENDIF > > END

Re: [Gambas-user] tableview edit

2009-09-07 Thread Benoît Minisini
> Ok I change the sentence, like this: > > PUBLIC SUB mitabla_Change() > DIM xArray AS String[] > xArray = ["Proba1", "proba2", "proba3"] > IF mitabla.Column = 0 THEN > mitabla.Edit(xArray, TRUE) > ENDIF > END > And the error is the same: "Null object". > (It's the full error message) > > Thanks

Re: [Gambas-user] tableview edit

2009-09-07 Thread Tomas Costa rivas
Ok I change the sentence, like this: PUBLIC SUB mitabla_Change() DIM xArray AS String[] xArray = ["Proba1", "proba2", "proba3"] IF mitabla.Column = 0 THEN mitabla.Edit(xArray, TRUE) ENDIF END And the error is the same: "Null object". (It's the full error message) Thanks for your help Tomas 2009/

Re: [Gambas-user] tableview edit

2009-09-07 Thread Benoît Minisini
> I have a problem in a tableview > > I try to edit a cell in a tableview as a comboview. > I write: > > Public sub mitabla_change() > DIM xArray AS NEW String[3] As you assign xArray a new array, you don't have to initialize it with a void one. Just do: DIM xArray AS String[] > xArray = ["pru

[Gambas-user] tableview edit

2009-09-07 Thread Tomas Costa rivas
I have a problem in a tableview I try to edit a cell in a tableview as a comboview. I write: Public sub mitabla_change() DIM xArray AS NEW String[3] xArray = ["prueba1", "prueba2", "prueba3"] IF mitabla.Column = 0 THEN subventas.Edit(xArray, TRUE) ' here is the problem ENDIF END I get a error ("

Re: [Gambas-user] TableView control, howto edit cells?

2009-04-03 Thread Doriano Blengino
Isaac Buch ha scritto: > Hello list, > > I am a newbee in gambas trying to use TableView control to allow user to > modify data on cells by clicking on it. > > I tried to move to a row&column and modify the tableview.current.text, (that > works fine in a button click event) but not in the tablev

[Gambas-user] TableView control, howto edit cells?

2009-04-03 Thread Isaac Buch
Hello list, I am a newbee in gambas trying to use TableView control to allow user to modify data on cells by clicking on it. I tried to move to a row&column and modify the tableview.current.text, (that works fine in a button click event) but not in the tableview_save event (Null object error)

Re: [Gambas-user] TableView Editing

2009-01-03 Thread Jason Hackney
> Just wondered if the TAB functionality was a feature or a bug? Or possibly > something that has been addressed more recently. > This happens in qt and gtk. -- ___ Gambas-user m

[Gambas-user] TableView Editing

2009-01-03 Thread Jason Hackney
Gambas 2.8... I've slightly modified Fabien's example posted on August 13, 2008. 1) I'm getting a "Null Object" when attempting to execute the following line inside a TableView Click event: TableView1.Edit(["a", "b", "c", "d"], FALSE) 2) Say I click on Col 0, Row 0. The contents of that cell ar

Re: [Gambas-user] Tableview edit on wrong line?

2008-11-11 Thread Rolf-Werner Eilert
Benoit Minisini schrieb: > On mercredi 5 novembre 2008, Rolf-Werner Eilert wrote: >> Hi folks, >> >> who's using the edit method in the TableView control? >> >> When I tried it for the first time the other day, the editor or listbox >> always showed up one and a half lines UNDER the position of the

Re: [Gambas-user] Tableview edit on wrong line?

2008-11-11 Thread Benoit Minisini
On mercredi 5 novembre 2008, Rolf-Werner Eilert wrote: > Hi folks, > > who's using the edit method in the TableView control? > > When I tried it for the first time the other day, the editor or listbox > always showed up one and a half lines UNDER the position of the cell I > had clicked on (but wit

Re: [Gambas-user] Tableview edit on wrong line?

2008-11-10 Thread Benoit Minisini
On mercredi 5 novembre 2008, Rolf-Werner Eilert wrote: > This shows me, it's more of a bug... :-) Didn't realise, but my first > trial with it took place on a form with a complicated hierarchy. So > that's why! > > First guess: The hidden edit or listbox control is invoked with > coordinates which

Re: [Gambas-user] Tableview edit on wrong line?

2008-11-06 Thread Leo Sendra
Thanks.. It's work well... But, should I use a mouse to choose the option in a tableview combo box?? Couldn't I use up arrow and down arrow on my keyboard to choose those option in combo box??? I have already tried up and down arrow. But, it just move to other cell. >Shouldn't be a problem. Wha

Re: [Gambas-user] Tableview edit on wrong line?

2008-11-05 Thread Rolf-Werner Eilert
Shouldn't be a problem. What you need is an array that takes the list contents, then you give Edit the list and set TRUE or FALSE for the edit property of the listbox control. This is my little trial example, "ls" is the array here, "tb" is my tableview in the program which I used for the exper

Re: [Gambas-user] Tableview edit on wrong line?

2008-11-05 Thread Leo Sendra
I also have a problem about edit method in tableview object. When I want to perform a list box using edit method, it doesn't work. Does anybody can show me about the code of using edit method in tableview object??? moon_walker schrieb: > Hi Rolf, > > i experienced the same issue. > It depends on

Re: [Gambas-user] Tableview edit on wrong line?

2008-11-05 Thread Rolf-Werner Eilert
This shows me, it's more of a bug... :-) Didn't realise, but my first trial with it took place on a form with a complicated hierarchy. So that's why! First guess: The hidden edit or listbox control is invoked with coordinates which do not take into account the real tableview coordinates when i

Re: [Gambas-user] Tableview edit on wrong line?

2008-11-05 Thread moon_walker
Hi Rolf, i experienced the same issue. It depends on the placing of the tableview on the form. If the tableview is placed on a plain form, it worked for me as expected. If the tableview was placed on a complicated hierarchy (h-split, tabstrip,datasource, v-panel, ) then it was a bit ugly. So i d

  1   2   >