We have a requirement to display simple diagram/gauge
eg: The example enumerating a drive - the total file size could be shown as a horizontal bar
We tried code like this with MSFlexGrid...
With Me.HSFlexGrid1
For li_row = 1 To .Rows
'Me.Pic_Temp.AutoRedraw = False/True
'draw on hidden VB.PictureBox
Me.Pic_Temp.BackColor = vbBlue 'also CLS
Me.Pic_Temp.Line (0, 0)-(Me.Pic_Temp.ScaleWidth, Me.Pic_Temp.ScaleHeight * (li_Row / .Rows)), vbRed, BF
.Row = li_Row
.Col = 2 'GaugeColumn
.CellPictureAlignment = flexAlignCenterCenter
Set .CellPicture = Me.Pic_Temp.Picture
works ok if you use .Image
Set .CellPicture = Me.Pic_Temp.Image
(https://msdn.microsoft.com/en-us/library/aa239858%28v=vs.60%29.aspx implies it should)
With the iGrid, can we assign a .Picture at runtime ?
Does iGrid have an HDC, and is it available ?
Edited by user
2016-04-25T08:12:04Z
|
Reason: error in code