ColorEachPoint not working in Ax7 Multi-language
Posted: Tue Jun 21, 2005 10:47 am
Using PowerBuilder 10.2.
I've found inserting TCAx7 in PB10.2 using the Control Type 'TeeChart ProActivex control' I can add a series with ColorEachPoint and it works ok. However, if I use Control Type 'TeeChart Pro Activex control v7' (the multi-language OCX) the series appears with all points black.
The series is an XY-scatter using the following code:
Is this a known issue (I can't find it in the release notes) with the multi-lang variant of the control?
Any suggestions?
Thanks
I've found inserting TCAx7 in PB10.2 using the Control Type 'TeeChart ProActivex control' I can add a series with ColorEachPoint and it works ok. However, if I use Control Type 'TeeChart Pro Activex control v7' (the multi-language OCX) the series appears with all points black.
The series is an XY-scatter using the following code:
Code: Select all
tchart.Legend.Visible = FALSE
tchart.AddSeries(scPoint)
tchart.series(0).asPoint.pointer.style = psDiagCross
tchart.series(0).asPoint.pointer.horizontalsize = 2
tchart.series(0).asPoint.pointer.verticalsize = 2
tchart.series(0).ColorEachPoint = TRUE
long lv_count
dec{3} ldec_dlg
dec{3} ldec_sl
integer li_point
long ll_colour
FOR lv_count = 1 TO dw_data.RowCount()
CHOOSE CASE ii_data
CASE 1
ldec_dlg = dw_data.GetItemNumber(lv_count, 'da_book_dlg')
ldec_sl = dw_data.GetItemNumber(lv_count, 'da_sl_today')
CASE 2
ldec_dlg = dw_data.GetItemNumber(lv_count, 'da_act_dlg')
ldec_sl = dw_data.GetItemNumber(lv_count, 'da_sl_today')
CASE 3
ldec_dlg = dw_data.GetItemNumber(lv_count, 'da_raw_dlg')
ldec_sl = dw_data.GetItemNumber(lv_count, 'da_raw_sl_today')
END CHOOSE
IF dw_data.GetItemNumber(lv_count, 'da_deliveries') <> 0 THEN
ll_colour = 255
ELSE
ll_colour = RGB(0,0,255)
END IF
li_point = tchart.series(0).AddXY(ldec_sl, ldec_dlg, '', ll_colour)
NEXT
Any suggestions?
Thanks