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

New issue 249 by imperiou...@paradise.net.nz: 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



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to