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
---
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
> 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
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.
> 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
> - 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
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
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
> 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
> 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
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
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
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.
>> >
>> >
13 matches
Mail list logo