I'm working in VB6 and want to display timed events as icons along the top horizontal Axis of a graph which also records temperature and Pressure over time.
If I use an image point series, can I set a custom Icon at run time depending on the type of event?
I have a list view of the data which uses icons from an imagelist control, and would want to use the same icons. It looks as if this should be possible, but I can't find anything in the tutorials/help
Many Thanks
Display Icons in a Custom Image Point Series
-
- Newbie
- Posts: 4
- Joined: Thu Oct 18, 2007 12:00 am
Hi DraegerSoft,
If I understand well you could use a method like following:
and call it in all the events you need with the parameter you want. For example, if you want to show the first image from the list when OnClick event is fired:
You could also take a look at those two demos where imagelists are used too:
Whats New->New Features->Canvas->Custom Shape->Picture
All Features->Miscellaneous>Legend->Symbol OnDraw
If I understand well you could use a method like following:
Code: Select all
Private Sub paint(num As Integer)
TChart1.Series(0).asImagePoint.ImagePoint.AssignImage ImageList1.ListImages.Item(num).Picture
End Sub
Code: Select all
Private Sub TChart1_OnClick()
paint 1
End Sub
Whats New->New Features->Canvas->Custom Shape->Picture
All Features->Miscellaneous>Legend->Symbol OnDraw
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |