Вниз
Скачать: 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
1-65837
Excel-deplphi
2003-11-10 07:26
2003.11.20
Как из делфи объединить ячейки в Excel ?


3-65705
SasaR
2003-10-29 17:22
2003.11.20
DBF, кириллица


1-65867
Condor
2003-11-09 14:22
2003.11.20
Out of system resurses


11-65812
Alexander
2003-03-04 11:13
2003.11.20
Как мне нарисовать что-нибудь на заголовках столбцов ListView


3-65767
Disruptor
2003-10-31 08:55
2003.11.20
RxMemoryData




   Наверх