EA7DFH | 1 Sep 01:11 2010

Re: Controls by code are invisible in Gnome

El 31/08/10 22:50, Fabián Flores Vadell escribió:
> I was testing a custom control in a Ubuntu 9.10 virtualized by
> VirtualBox (using Gambas 2.18), and my controls become invisible in
> execution time. This not happens on Kubuntu 10.04 on virtualbox too
> (using Gambas 2.20).
> 
> I was suprized when I verified that the same happens with controls
> provided by Gambas,  What's could be happening?
> 
> 'lbl1 is invisible in time execution
> PUBLIC SUB _new()
>   DIM lbl1 AS NEW Label(ME)
> 
>   lbl1.Text = "Hi people"
> END
> 

Sorry for re-posting... I've clicked the Send button too early!

May be you need to specify X, Y coordinates and size for the new widget
to be positioned on your form?

--

-- 
Jesus, EA7DFH

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
(Continue reading)

Fabián Flores Vadell | 1 Sep 02:06 2010
Picon

Re: Controls by code are invisible in Gnome

2010/8/31 EA7DFH <ea7dfh <at> ea7dfh.com>:

> You forgot to mention this only happens when using gb.gui in Gnome or gb.gtk
> specifically.

Thanks for the correction.

> Sorry for re-posting... I've clicked the Send button too early!
>
> May be you need to specify X, Y coordinates and size for the new widget
> to be positioned on your form?

I tried that, but isn't the problem.

--

-- 
Fabián Flores Vadell
www.speedbooksargentina.blogspot.com

------------------------------------------------------------------------------
This SF.net Dev2Dev 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
JUHASZ Robert | 1 Sep 09:49 2010
Picon

Re: TableView issue

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

-----Original Message-----
From: Benoît Minisini <gambas <at> users.sourceforge.net>
Reply-to: mailing list for gambas users
<gambas-user <at> lists.sourceforge.net>
To: mailing list for gambas users <gambas-user <at> lists.sourceforge.net>
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 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 fine. In this case I can
> > use the arrows to move up and down, left and right. It is very
> > comfortable. As long as I use protected lists (readonly=true) it works
> > fine as well, except that I cannot move left and right with the arrows.
> > It is less comfortable but still okay.
(Continue reading)

Fabián Flores Vadell | 1 Sep 14:24 2010
Picon

Inconsistent initialization in controls: seems a little bug

I tested this only for control Label:

When a control label is created in execution time using gb.qt, then
control become visible just after assign a value at the Text property:

  PUBLIC SUB _New()

    DIM lbl1 AS NEW Label(ME)

    lbl1.Text = "Hi people"

  END

But if you write the same code in a form using gb.gtk, the control
Label keeps invisible until the properties X, Y, Width and Height gets
values.

--

-- 
Fabián Flores Vadell
www.speedbooksargentina.blogspot.com

------------------------------------------------------------------------------
This SF.net Dev2Dev 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
Benoît Minisini | 1 Sep 19:45 2010
Picon
Picon

Re: Inconsistent initialization in controls: seems a little bug

> I tested this only for control Label:
> 
> When a control label is created in execution time using gb.qt, then
> control become visible just after assign a value at the Text property:
> 
>   PUBLIC SUB _New()
> 
>     DIM lbl1 AS NEW Label(ME)
> 
>     lbl1.Text = "Hi people"
> 
>   END
> 
> But if you write the same code in a form using gb.gtk, the control
> Label keeps invisible until the properties X, Y, Width and Height gets
> values.

I'm inclined to prefer the gb.gtk behaviour than the gb.qt one, aren't you?

--

-- 
Benoît Minisini

------------------------------------------------------------------------------
This SF.net Dev2Dev 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
(Continue reading)

Benoît Minisini | 1 Sep 19:46 2010
Picon
Picon

Re: TableView issue

> 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 
example you provided me.

--

-- 
Benoît Minisini

------------------------------------------------------------------------------
This SF.net Dev2Dev 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 <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
Benoît Minisini | 1 Sep 19:47 2010
Picon
Picon

Re: TableView issue

> > 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
> example you provided me.

Sorry, I didn't see that with gb.gtk there is another problem!

--

-- 
Benoît Minisini

------------------------------------------------------------------------------
This SF.net Dev2Dev 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 <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
Benoît Minisini | 1 Sep 22:02 2010
Picon
Picon

Re: TableView issue

> > > 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
> > example you provided me.
> 
> Sorry, I didn't see that with gb.gtk there is another problem!

Is it better with revision #3174?

--

-- 
Benoît Minisini

------------------------------------------------------------------------------
This SF.net Dev2Dev 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 <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
(Continue reading)

Dag Jarle Johansen | 1 Sep 23:19 2010

Your energy

Hola, Benoit.

this is no mail because of things not happening - this is a mail of
admiretance,
I was a little silent in the last months, because I have to write some
stuff in PHP. Facebook-stuff MS I hate it, but that is money. Plenty. I
really even have to do it, but I see it as a challenge - old guy making
young people happy. 

Now to Gambas - JUST GREAT - in every means - how do manage that? 
How do you at all manage all that mails? You are so fast in everything
you are doing, I am very impressed.

Saludos,
Dag

------------------------------------------------------------------------------
This SF.net Dev2Dev 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
Fabián Flores Vadell | 2 Sep 01:03 2010
Picon

Re: Inconsistent initialization in controls: seems a little bug

2010/9/1 Benoît Minisini <gambas <at> users.sourceforge.net>:
> I'm inclined to prefer the gb.gtk behaviour than the gb.qt one, aren't you?

Uhm... when a label is drawed on a form by double clicking on its icon
in the toolbox, the label appears on X=0 Y=0, its Text property is set
to "LabelX" and its Width adjusts to Text property. I think than this
behavior should be consistent with the initialization that take place
when controls are created by code, too.

I think that if the behavior is consistent, choose by one or another
isn't significant for programmers. But student or begginers may be
keeps in their retinas the behavior that they saw when creating
controls on the form editor, and they expect that the same happens
when they create controls by code.

My preference is to the more intuitive behavior... that seems to me is
the gb.qt.

Thanks for consider my opinion.

--

-- 
Fabián Flores Vadell
www.speedbooksargentina.blogspot.com

------------------------------------------------------------------------------
This SF.net Dev2Dev 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
(Continue reading)


Gmane