[Gambas-user] Wordwrap
Anthony Ivan
imperious.ldr at ...2835...
Sun May 13 03:29:24 CEST 2012
Hello Everyone,
I am trying to get wordwrap to work in a gridview using the following
code snippet:
Me.sysMessages.Rows.Count = 0
Me.sysMessages.Columns.Count = 3
Me.sysMessages.Columns[0].W = IIf(Me.sysMessages.ClientW * 0.05 <
varMinDateWidth, varMinDateWidth, Me.sysMessages.ClientW * 0.05)
Me.sysMessages.Columns[1].W = IIf(Me.sysMessages.ClientW * 0.05 <
varMinPrefixWidth, varMinPrefixWidth, Me.sysMessages.ClientW * 0.05)
Me.sysMessages.Columns[2].W = -1
Me.sysMessages.Columns[0].Text = "Date"
Me.sysMessages.Columns[1].Text = "Prefix"
Me.sysMessages.Columns[2].Text = "Message"
For Each tmpStr In varSysMessages
Me.sysMessages.Rows.Count += 1
myCol = ReturnColors(tmpStr[3])
Me.sysMessages[a, 0].Text = tmpStr[0]
Me.sysMessages[a, 1].Text = tmpStr[1]
Me.sysMessages[a, 2].Text = tmpStr[2]
Me.sysMessages[a, 2].WordWrap = True
Me.sysMessages.Rows[a].H = -1
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
This code was working perfectly the other day (was using the RPM version
of Gambas 3.0)... subsequently have upgraded to the SVN version (Fedora
16, x86_64, KDE) and was wondering if there had been any changes to the
wordwrap since stable version 3.0? If not then I guess something else
has been updated on the system that has caused my problem.
Thanks,
Anthony
More information about the User
mailing list