[Gambas-user] Alignment or Gridview problem?

Dominique SIMONART simonart.dominique at ...11...
Mon Jan 12 19:23:45 CET 2009


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?
Is this append with the 2.x version of Gambas?

Thank for your help
Dominique SIMONART

 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestOne.png
Type: image/png
Size: 31770 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20090112/6dbdc6cc/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestTwo.png
Type: image/png
Size: 34628 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20090112/6dbdc6cc/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestThree.png
Type: image/png
Size: 33647 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20090112/6dbdc6cc/attachment-0002.png>


More information about the User mailing list