by Michael Toye (6 Submissions)
Category: Custom Controls/Forms/Menus
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating:
(3 Votes)

Labels where all the text doesn't fit due to space constraints. Gah! Here is the solution! Flexbible font face and size, several styles.
All API driven from font creation to frame buffering.
Inputs
Label scrolls when mouse move in the final 10 pixels.
where the caption is too long, '...' displayed.
Click on the label to stop and disable the scrolling.
dbl click to re enable the scrolling
backstyle flat, light and dark gradient, vista split gradient style.
any font and size.
API DeclarationsSetPixel SetRect FillRect CreateFont TextOut SetTextColor StretchDIBits BitBlt CreateCompatibleBitmap CreateCompatibleDC SelectObject GetDC DeleteDC DeleteObject SetBkMode
MulDiv GetDeviceCaps CreateBrushIndirect OleTranslateColor
Download Frame buffered, all API, scrolling label control (5 KB)