TextSetting property (Cells)
|
Remarks
|
Settings of the text that will appear over the cell identified by the UniqueID parameter: it can be multi-line.
Further information about cells management can be found inside the How to manage cells section.
|
|
Get / Set functions
|
BOOL abmCellsGetTextSetting (
HWND hWndBtn,
short nUniqueID,
TEXT_DESC *pdesc
);
BOOL abmCellsSetTextSetting (
HWND hWndBtn,
short nUniqueID,
TEXT_DESC *pdesc
);
|
Parameters
|
Description
|
|
hWndBtn
|
Windows handle associated to the button.
|
|
nUniqueID
|
Numerical value representing the cell's unique identifier.
|
|
pdesc
|
Address of the the TEXT_DESC structure containing the text settings.
|
|
Visual Basic example
Dim txtDesc As TEXT_DESC
abmCellsGetTextSetting btn1.hWnd, 1000, txtDesc
txtDesc.colorNormal = RGB (0, 255, 0)
txtDesc.colorMouseOver = RGB (0, 0, 255)
txtDesc.nAngle = 45
abmCellsSetTextSetting btn1.hWnd, 1000, txtDesc
With this code, after the call to the abmCellsSetTextSetting function, the cell with UniqueID 1000 of button btn1 will have a light green text, rotated by 45 degrees clockwise, that will change into light blue when the mouse will pass over the button surface.
Visual C++ example
TEXT_DESC txtDesc;
abmCellsGetTextSetting (btn1.GetSafeHwnd (), 1000, &txtDesc);
txtDesc.colorNormal = RGB (0, 255, 0);
txtDesc.colorMouseOver = RGB (0, 0, 255);
txtDesc.nAngle = 45;
abmCellsSetTextSetting (btn1.GetSafeHwnd (), 1000, &txtDesc);
With this code, after the call to the abmCellsSetTextSetting function, the cell with UniqueID 1000 of button btn1 will have a light green text, rotated by 45 degrees clockwise, that will change into light blue when the mouse will pass over the button surface.