[Gambas-user] Alignment or Gridview problem?
Benoit Minisini
gambas at ...1...
Mon Jan 12 19:46:54 CET 2009
On lundi 12 janvier 2009, Dominique SIMONART wrote:
> Benoit Minisini a écrit :
> > On jeudi 8 janvier 2009, Dominique SIMONART wrote:
> >> Hi everybody,
> >>
> >> Happy new year, ...
> >>
> >> Here are two little screen captures to show my problem.
> >> In the Bad.png, look at the width of the Gridview, that ends with +64
> >> In the Good.png, look the same line that ends with +65. This is the
> >> unique difference,
> >> but what a different effect!
> >> In fact, I don't need the extra width at all. If you change Align.Center
> >> by Align.Left, all is OK with +2
> >> (it doesn't work with Align.Right however)
> >>
> >> In case you want to test, I add the whole project below
> >> (Open Suse 11.0 / KDE 3.5 / QT / Gambas 2.8)
> >
> > With the last 2.x version, putting 64 or 65 changes nothing except the
> > one pixel difference. In both cases you get the first screenshot, which
> > what is expected.
> >
> > Regards,
>
> Sorry, but the TestThree.png was wrong. Here is the good one!
>
> Thanks Benoit,
>
> I think there is a problem with the *last* column of a gridview, but may
> be I missed something instead.
> 1) In the TestOne, the code is what I want to get (the usage of 'k' is
> for the test only!), but the display is not what I expected (nothing
> visible in the las column)
> 2) If I remove the Alignment instruction (TestTwo), I get what I expect,
> but not what I wished!
> 3) As a workaround (TestThree), I add a column to my gridview, I mask it
> with the width limitation (role of k=1), and I restore the alignment.
>
> As you can see, the problem is just with the last column with centered text
> Is the first case works as expected?
Please send me your project. It will be simpler for me to deal with the real
thing instead of reproducing it from what you say.
Regards,
--
Benoit Minisini
More information about the User
mailing list