[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 (Null

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 = [prueba1,

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 gam...@users.sourceforge.net 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

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
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 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 do

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.

[Gambas-user] Tableview edit on wrong line?

2008-11-05 Thread Rolf-Werner Eilert
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 with the correct contents). It doesn't have a frame, so I guess it

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

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

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