Вниз
Скачать: CL | DM;

Вывод текста (TGraphicControl)   Найти похожие ветки 

 
Eagle Owl ©   (2003-11-10 18:53) [0]

Вечер добрый, мастера!
Подскажите, пожалуйста, как на канве потомка TGraphicControl"а выводить текст, который при изменении размера этого объекта всегда находился бы по центру?
Спасибо.


 
mrcat ©   (2003-11-10 19:09) [1]

DrawText
The DrawText function draws formatted text in the specified rectangle. It formats the text according to the specified method (expanding tabs, justifying characters, breaking lines, and so forth).

To specify additional formatting options, use the DrawTextEx function.

int DrawText(
HDC hDC, // handle to DC
LPCTSTR lpString, // text to draw
int nCount, // text length
LPRECT lpRect, // formatting dimensions
UINT uFormat // text-drawing options
);

DT_CENTER Centers text horizontally in the rectangle.

оно самое ?


 
Eagle Owl ©   (2003-11-10 19:13) [2]

Оно...
Спасибо!



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.016 c
3-65788
Zelius
2003-10-30 13:03
2003.11.20
Посоветуйте компонент memory table, кто имеет опыт работы с ним?


1-65854
vlad_ir
2003-11-09 20:14
2003.11.20
Месяц прописью


7-66140
bloodman
2003-09-01 17:13
2003.11.20
Модем и тоновые команды


1-65991
Слэш2
2003-11-10 15:22
2003.11.20
FormStyle поменять назад


1-65917
mc_duck
2003-11-08 12:45
2003.11.20
Сохранение объектов.




   Наверх