Thank You very much for the Info,
my problem :
1. I want to keep the basic-structure.
2. The user can select a new Header-Bmp from Disk for testing.
3. I have to rebuild the BMP-array after a new selection of the Header Bmp.
That clears the BMP-Array of a Column :
oLbx0:aCols[ 2 ]:bBmpData := {|| 0 }
oLbx0:Refresh()The number of Array-Elements are still the same.
Maybe it is possible, to start with a empty array again ( Array-Reset ) ?
- Code: Select all Expand view
//------------------- PAINT HEADER --------------------------------//
FUNCTION xBNEWF9(oLbx0)
oLbx0:aCols[ 2 ]:AddResource("Calendar")
oLbx0:aCols[ 2 ]:AddResource("Calendar")
oLbx0:aCols[ 2 ]:AddResource("Calendar")
oLbx0:aCols[ 2 ]:AddResource("Calendar")
oLbx0:aCols[ 2 ]:AddResource("Calendar")
oLbx0:aCols[ 2 ]:AddResource("Calendar")
oLbx0:aCols[ 2 ]:AddResource("Calendar")
oLbx0:aCols[ 2 ]:AddResource("Calendar")
oLbx0:aCols[ 2 ]:AddResource("Calendar")
oLbx0:aCols[ 2 ]:AddResource("Calendar")
oLbx0:aCols[ 2 ]:AddResource("Calendar")
oLbx0:aCols[ 2 ]:AddResource("Calendar")
oLbx0:aCols[ 2 ]:AddResource("Calendar")
// Header Bmp from Disk with a position-Number
oLbx0:aCols[ 2 ]:AddBmpFile(BR_HEADBMP) // BMP-Test
oLbx0:aCols[ 2 ]:nHeadBmpNo := 14
oLbx0:Refresh()
RETURN( NIL )
The easy way would be a straight define for the Header-Bmp : oLbx0:aCols[ 2 ]:nHeadBmp := BR_HEADBMP
but I have to use the Position-Number from the Array-list.
There seems to be also something wrong, after changing the Header-Text-Color.
The display-problem has been before in cells.
Everything is OK, changing the Gradient of the Header.
As soon the Text-Color changes, the Header-BMP is affected from the Color.
At start
---------
After Text-Color-Change
-----------------------------
More Tests
--------------
Best Regards
Uwe