[Gambas-user] Issue 249 in gambas: cell height in gridrow can not be set to -1 for autoheight

gambas at ...2524... gambas at ...2524...
Mon May 14 00:01:16 CEST 2012


Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any  
Desktop-Any GUI-Any

New issue 249 by imperiou... at ...2360...: cell height in gridrow can  
not be set to -1 for autoheight
http://code.google.com/p/gambas/issues/detail?id=249

1) When setting a gridview cell to a height to -1 to resize it after the  
text has been wordwrapped the height does not change. Setting the height  
manually does work.

2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):

Version: TRUNK
Revision: 4728
Operating system: Linux
Distribution: Fedora
Architecture: x86_64
GUI component: QT4
Desktop used: KDE

3) Code as thus:
   For Each tmpStr In varSysMessages
     Me.sysMessages.Rows.Count += 1
     myCol = ReturnColors(tmpStr[3]) ' For making all really pretty
     Me.sysMessages[a, 0].Text = tmpStr[0] ' Text
     Me.sysMessages[a, 1].Text = tmpStr[1] ' Some more text
     Me.sysMessages[a, 2].Text = tmpStr[2] ' long text string
     Me.sysMessages[a, 2].WordWrap = True
     Me.sysMessages.Rows[a].H = -1 (if I set this to any other value it  
works)
     For b = 0 To 2
       Me.sysMessages[a, b].Alignment = Align.TopLeft
       Me.sysMessages[a, b].Foreground = Color.RGB(myCol[0], myCol[1],  
myCol[2])
       Me.sysMessages[a, b].Background = Color.RGB(myCol[3], myCol[4],  
myCol[5])
     Next
     a += 1
   Next






More information about the User mailing list