[Gambas-user] Table View edit question

2010-09-04 Thread Almanova Sistemi
Hello to everyone, I am writing a gambas program that uses the control tablewiev. My problem is how to exit from tableview.edit when I press Return or Enter key. I tried tableview.cancel in tableview_save event but I get the message "null object" Why? Thanks ---

Re: [Gambas-user] Can you put a big box into a small one?

2010-09-04 Thread Doriano Blengino
Benoît Minisini ha scritto: >> Benoît Minisini ha scritto: >> 2010/9/3 Benoît Minisini : > Controls are always clipped by their container, because they are > windows inside windows, and this is how X-Window works. > > *But* (there is always a *but*), now QT4

Re: [Gambas-user] Can you put a big box into a small one?

2010-09-04 Thread Benoît Minisini
> Benoît Minisini ha scritto: > >> 2010/9/3 Benoît Minisini : > >>> Controls are always clipped by their container, because they are > >>> windows inside windows, and this is how X-Window works. > >>> > >>> *But* (there is always a *but*), now QT4 and GTK+ do not create one > >>> window for each c

Re: [Gambas-user] Can you put a big box into a small one?

2010-09-04 Thread Doriano Blengino
Benoît Minisini ha scritto: >> 2010/9/3 Benoît Minisini : >> >>> Controls are always clipped by their container, because they are windows >>> inside windows, and this is how X-Window works. >>> >>> *But* (there is always a *but*), now QT4 and GTK+ do not create one >>> window for each control.

Re: [Gambas-user] TextWidth

2010-09-04 Thread Benoît Minisini
> 2010/9/4 Benoît Minisini : > >> The best solution that I found was: > >> > >> txtSomeThing.Width = txtSomeThing.TextWidth(txtSomeThing.Text & "W") > > > > This is not a solution, as the width of the border is not related to the > > width of the "W" character at all. > > I know that, but it wor

Re: [Gambas-user] several issues

2010-09-04 Thread Benoît Minisini
> - The use of references to objects obtained from "parent" and > "children" properties is cause of circular references. If you create circular references, the interpreter can't do anything for you. But please explain exactly where and how, and I would be able you better. > > - Gambas (2.21 and

Re: [Gambas-user] TextWidth

2010-09-04 Thread Fabián Flores Vadell
2010/9/4 Benoît Minisini : >> The best solution that I found was: >> >> txtSomeThing.Width = txtSomeThing.TextWidth(txtSomeThing.Text & "W") > > This is not a solution, as the width of the border is not related to the width > of the "W" character at all. I know that, but it works much better than

Re: [Gambas-user] Inconsistent initialization in controls: seems a little bug

2010-09-04 Thread Fabián Flores Vadell
2010/9/3 Benoît Minisini : > Some explanations, because it seems that things are not clear for you: > > There is no difference in what you can do with the GUI editor and what you can > do directly by code. The Gambas compiler just transform the GUI description > into normal Gambas code. > > So when

Re: [Gambas-user] Can you put a big box into a small one?

2010-09-04 Thread Benoît Minisini
> 2010/9/3 Benoît Minisini : > > Controls are always clipped by their container, because they are windows > > inside windows, and this is how X-Window works. > > > > *But* (there is always a *but*), now QT4 and GTK+ do not create one > > window for each control. They manage the imbrication interna

Re: [Gambas-user] TextWidth

2010-09-04 Thread Benoît Minisini
> 2010/9/3 Benoît Minisini : > > I couldn't find a better solution than Doriano, because there is no easy > > way to know the size of a control border in Qt and GTK+. > > > > Moreover, I don't see the need of adjusting a TextBox to its contents, as > > usually this is an editable control, and so t

Re: [Gambas-user] Can you put a big box into a small one?

2010-09-04 Thread Fabián Flores Vadell
2010/9/3 Benoît Minisini : > Controls are always clipped by their container, because they are windows > inside windows, and this is how X-Window works. > > *But* (there is always a *but*), now QT4 and GTK+ do not create one window for > each control. They manage the imbrication internally. So techn

Re: [Gambas-user] TextWidth

2010-09-04 Thread Fabián Flores Vadell
2010/9/3 Benoît Minisini : > I couldn't find a better solution than Doriano, because there is no easy way > to know the size of a control border in Qt and GTK+. > > Moreover, I don't see the need of adjusting a TextBox to its contents, as > usually this is an editable control, and so the user can e

Re: [Gambas-user] To wish list...

2010-09-04 Thread Jussi Lahtinen
OK, doesn't matter, I'll do it other way. Thanks for trying! Jussi 2010/9/4 Benoît Minisini : >> On 26/08/10 03:30, Jussi Lahtinen wrote: >> > Hi! >> > I would like to have TimeLeft property to timer object. >> > It is only missing thing which forces me to write my own delay function. >> > >> >