Download this file
1 2 3 4 5 6 7 8 9 10 11 12 13
// Draw Selection m_pCurrentClientData^.GlobalData.DrawingContext.SetElementLookDeactive(FALSE); IF m_bToggleState THEN iThumbOffset := TRACK_WIDTH-(THUMB_RAIDUS*2); END_IF iSelectionRadius := (HEIGHT_PART-(THUMB_RAIDUS*2))/2; iThumbXGap := (WIDTH_PART-TRACK_WIDTH)/2 + iThumbOffset; thumbPaintRectangle.m_Points[0].iX := thumbPaintRectangle.m_Points[0].iX + TO_INT(iThumbXGap*_currentPart); thumbPaintRectangle.m_Points[2].iX := thumbPaintRectangle.m_Points[0].iX + TO_INT((THUMB_RAIDUS*2)*_currentPart); thumbPaintRectangle.m_Points[1].iX := thumbPaintRectangle.m_Points[2].iX; thumbPaintRectangle.m_Points[3].iX := thumbPaintRectangle.m_Points[0].iX; m_pCurrentClientData^.GlobalData.DrawingContext.DrawRectUnchecked2(Rectangle := thumbPaintRectangle, bTransform := TRUE,pClientdata := m_pCurrentClientData, pPaintBuffer := ADR(m_pCurrentClientData^.PaintBuffer));