I need to maintain the fixed with of column, but justify a big word txt in a cell of msflexgrid.
possible?
note:
the possible big is in column 2 and in column 3
Justify long word txt in a cell of msflexgrid
-
- PlatinumLounger
- Posts: 4355
- Joined: 26 Apr 2010, 17:36
-
- 4StarLounger
- Posts: 550
- Joined: 27 Jun 2021, 10:46
Re: Justify long word txt in a cell of msflexgrid
Well, assumuing I understand you correctly - sort of.
The MSFlexGrid has a (global) WordWrap property that can be set. But it is far from intelligent, lacking a hyphenation dictionary, and only creates a linebreak on whitespace, and does not automatically adjust the height of a row.
You might be better off, if your goal is to allow user to see entire text in a specic cell, to populate the ToolTiptext with the contents of the cell, e.g
The MSFlexGrid has a (global) WordWrap property that can be set. But it is far from intelligent, lacking a hyphenation dictionary, and only creates a linebreak on whitespace, and does not automatically adjust the height of a row.
You might be better off, if your goal is to allow user to see entire text in a specic cell, to populate the ToolTiptext with the contents of the cell, e.g
Code: Select all
Private Sub MSFlexGrid1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
MSFlexGrid1.ToolTipText = MSFlexGrid1.TextMatrix(MSFlexGrid1.MouseRow, MSFlexGrid1.MouseCol)
End Sub
-
- 4StarLounger
- Posts: 550
- Joined: 27 Jun 2021, 10:46
Re: Justify long word txt in a cell of msflexgrid
DId you resolve this?
-
- PlatinumLounger
- Posts: 4355
- Joined: 26 Apr 2010, 17:36