Tuesday, May 22nd 2012, 1:12am UTC+2

You are not logged in.

  • Login
  • Register

Dani

Trainee

Posts: 68

Location: GERMANY

1

Friday, September 16th 2011, 2:36pm

JBGrid - formatting

Hey everybody,
there are a couple issues about the JBGrid that either I can not get to work or simply don't work.
I don't know!?
Anyway the following does not work:

Jabaco Source

1
2
3
4
5
' JBGrid
Public Sub Form_Load()
   grdTest.TextMatrix(0, 0) = "Test"
   grdTest.DataMatrix(0, 0).FontBold = True 
End Sub

also in the JBGrid it is possible to set every cell to a different FontColor, alignment and so on ...
But when a cell is selected the FontColor and other formatting turns to default values.

You can make use of the JLable's ability to display html formatted text to work around these limitations:

Jabaco Source

1
grdTest.DataMatrix(0,0).Parent.setText("<html><b>" & grdTest.TextMatrix(0,0) & "</b></html>")

Code needs to be present in the MouseDown() Sub as well !!

Have fun,


Dani

Rate this thread
WoltLab Burning Board